#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Sep 2006
    Posts
    660
    Rep Power
    31

    Is :void needed?


    Just curious to know if adding ":void" necessary when there is nothing being sent to the function when you call it.

    eg.
    run_me();

    function run_me(){
    trace("yeah")
    }
  2. #2
  3. No Profile Picture
    Gotta get to the next screen..
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2003
    Location
    Legion of Dynamic Discord
    Posts
    6,678
    Rep Power
    3164
    No although it is best practise to specify a function return type even if it is void. That is except for a class constructor which should have no return type.
    Quis custodiet ipsos custodes?

IMN logo majestic logo threadwatch logo seochat tools logo