REQUEST: Documentation on structs (IMPLEMENTED)

Started by Rui 'Trovatore' Pires, Sat 17/09/2005 15:01:00

Previous topic - Next topic

Rui 'Trovatore' Pires

The more I look at other people's code, the more I wander about how they do it and why they do it. This has made me curious enough to want to learn about arrays, which are not documented. Now I'm pestering the kind folks at #AGSTech with structs, which - as explained to me - aren't really an official thingy, but which nevertheless have been proved to be real handy.

The AGS documentation is great, in my opinion - well writ, easy to understand, with good examples, sets you off in the right direction if you want to learn. So I'd like to see documentation about structs and arrays.

Pretty please?
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Pumaman

#1
The main reason for structs being undocumented was that strings couldn't be put inside them. However, now that 2.71 beta 6 allows Strings in structs, it probably is about time to make them official.

As for arrays, they were unofficial because of possible array bounds errors, however since that is now checked by the script engine, again they can probably become an official feature.

Good points, I'll see about documenting them for a future version.

Edit by strazer

AGS v2.71 RC 1:
* Arrays and structs are now officially supported, and are documented in the manual.

(Manual -> Scripting -> Script language keywords -> Arrays / struct)

SMF spam blocked by CleanTalk