hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Pass in parameters (and object)

    Scheduled Pinned Locked Moved Comments & Feedback
    2 Posts 2 Posters 369 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • KamdroidK Offline
      Kamdroid
      last edited by

      There should be a standard way of passing in parameters for a function. Usually I use broadcast behaviours, but this isn't sufficient.

      When will we be able to pass in an object? I have a function, that does many things to an object. Instead of just being able to pass in a desired object to be used in all the object manipulation behaviours, I have to painfully copy these behaviours and select the object I want.

      The worst part is when I need to make a change to the function, I have to do it for every one, which is horribly inefficient and waste of time,

      D 1 Reply Last reply Reply Quote 1
      • D Offline
        Deeeds @Kamdroid
        last edited by Deeeds

        @Kamdroid

        I second your sentiments.

        There should be named command creation (functions/methods):

        • Functions should take inputs

        • Functions should return results

        • Methods should be encapsulated/invokable within objects

        • Functions should be accessible globally or within scope

        • Functions should be passable as parameters

        • objects should be referenced, and this be passable and shareable

        And...

        The Behaviour Editor should have UNDO, REDO and a listed history of modifications made to all behaviours within any object.

        ;)

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post