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

    Pass in parameters (and object)

    Scheduled Pinned Locked Moved
    Comments & Feedback
    2
    2
    106
    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
      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
        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
        • First post
          Last post