Author |
Message |
david bennett (Dpoly)
New member Username: Dpoly
Post Number: 9 Registered: 4-2017
| Posted on Monday, October 02, 2017 - 10:38 am: | |
I have been looking at some of the contributed games, and found places where they do things that I cannot find in the documentation. I was wondering if this is common knowledge, or does one just have to suck it and see? So, are these observations correct? 1. Macros can be defined anywhere in the ZRF file, and can be used before being defined. 2. Macros can be redefined, but only the last definition takes effect. 3. Excess arguments are allowed on some statements and will be ignored. For example, (directions (n -1 0 0 0 0 0 0 0) ) will work on a 2D chess board. 4. Pieces can be defined in any order, and can refer to other pieces defined later. There are more, but that's enough for now. Any experts out there who know the answers? |
M Winther (Kalroten)
New member Username: Kalroten
Post Number: 174 Registered: 1-2007
| Posted on Thursday, October 26, 2017 - 2:05 pm: | |
Macros and pieces can be defined anywhere. If they have the same name, the last takes effect. I don't know about excess arguments. Mats |
david bennett (Dpoly)
New member Username: Dpoly
Post Number: 11 Registered: 4-2017
| Posted on Sunday, October 29, 2017 - 10:53 am: | |
Thanks for the response. That's what I had deduced. Also: macro substitution works inside strings. There seem to be quite a lot of details that the manual leaves unspecified, but which people have discovered by experimentation. |
|