Pages: 1 2 [3]
  Print  
Author Topic: foreach and Serializable  (Read 1865 times)
Offline (Male) Josh @ Dreamland
Reply #30 Posted on: March 02, 2011, 09:48:16 PM

Prince of all Goldfish
Developer
Location: Ohio, United States
Joined: Feb 2008
Posts: 2343

View Profile Email
I have every intention of implementing an array() method that allocates a C++ array, and using [] to denote size-prefixed array objects with a double*() or variant* method. Basically, any [ not following an identifier would be assumed an array, which would be passed to array() as a constructor argument using GNU extensions/C++0x, like so:

[ 1, 2, 3 ]
array((int[]){1, 2, 3})

[ 1.5, "string", 2 ]
array((variant[]){1.5,"string",2})
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Pages: 1 2 [3]
  Print