GMLscripts.com

Discuss and collaborate on GML scripts
Invert

You are not logged in.

#1 2011-12-28 20:26:24

Daniel
Member
Registered: 2011-05-04
Posts: 25

GML Syntax Tricks, Quirks and Oddities Needed

I'm in the process of writing a library of scripts that utilize any and all GM syntax quirks.

For example, one quick I found was that you could leave semi-colons out of the for loop, which let me to create a very-close-to foreach loop in GML. It ended up looking like this:

for(each(list) as key_value())

It works for files, too

for(each("hi.txt") as key_value())

Now I need to know ANY quirks with the language, even if you think they're useless. For example, being able to set/get any variable name with variable_local_set/get, even symbols... Or being able to use _ as a variable/resource name..

FYI, this is for gQuery.

Offline

#2 2011-12-29 15:29:51

xot
Administrator
Registered: 2007-08-18
Posts: 1,239

Re: GML Syntax Tricks, Quirks and Oddities Needed

Whoa! That's a pretty powerful set of scripts.

I have to admit I'm a little baffled by your "for" construct. That's GML? With the "as" keyword?

I'd look over the GM Bugs and GML References forums here for any topics about GM quirks.


Abusing forum power since 1986.

Offline

#3 2011-12-29 15:32:39

Daniel
Member
Registered: 2011-05-04
Posts: 25

Re: GML Syntax Tricks, Quirks and Oddities Needed

Yes it's standard GML taking advantage of some little GM quirks. I need MORE quirks to take advantage of! smile

I looked through those forums, and I'm still scouring for some quirks.

Thanks btw. smile

Offline

Board footer

Powered by FluxBB