Results 1 to 4 of 4

Thread: Quick yes or no question

  1. #1
    Join Date
    Jun 2007
    Location
    I'm not sure...
    Posts
    581
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Quick yes or no question

    Can a result of a function be an array?
    I've seen a lot of functions that return TPoints and LongInts but I've never seen one that has an array for a result XD
    Thats beside the point but whatever, more importantly; Can a result of a function be an array?

    EDIT: Yes it can. Lol, I just made a little function and compiled it to syntax check it XD. I was gonna delete this, but I'm gonna leave it up because It'll be a good refference if anyone else asks the same question. (If not just say so and I'll delete it lol)
    ---------------------------------------------------------


    Pm me if you need any math functions made. Me = l0ving t3h mathz

    ---------------------------------------------------------

  2. #2
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes
    "your always where you supposed to be"

  3. #3
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes, i believe that you can pass anything you want to and from functions. Including objects, that hold arrays, ints, and even other objects.
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  4. #4
    Join Date
    Jun 2007
    Location
    New Yawk
    Posts
    943
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Function = there is one input, one output. Just like in your math class. Your input and output must be the same type though, for things to pass through, but pretty much everything will.
    I guess the holidays are over - no sig for now.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  2. Quick question
    By GinFoxface in forum OSR Help
    Replies: 2
    Last Post: 04-07-2007, 04:25 AM
  3. Quick Question
    By mage of begu in forum OSR Help
    Replies: 10
    Last Post: 01-12-2007, 10:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •