Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Array to arguments for a method?
#1
I feel like I've asked this before, and I'm sure I managed to make this work at least once. I don't think I remember how. Anyway, I'm trying to figure out how to turn an array into a set of arguments for a method.

Quick example I'm putting out there, just because it's something I'm trying to figure out: Turning this array
Code:
@sound = ["Audio/SE/002-System02", 80, 100]

into a set of arguments for
Code:
Audio.se_play(filename[, volume[, pitch]])
Reply }


Messages In This Thread
Array to arguments for a method? - by PK8 - 07-08-2011, 11:33 AM
RE: Array to arguments for a method? - by deValdr - 07-08-2011, 12:17 PM
RE: Array to arguments for a method? - by PK8 - 07-08-2011, 10:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   New Encryption Method Test Legacy 2 4,230 05-22-2010, 07:17 PM
Last Post: Monster Buffer
   how to check if a method has been aliased? Charlie Fleed 6 8,266 01-21-2010, 06:26 PM
Last Post: DerVVulfman



Users browsing this thread: