Beware! Numbers at the beginning of argument declaration!
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Omni

Here's an example.


Create3DScene(int 3Dpolygon)
{
Log(str(3Dpolygon));
}


Verge assumes the "3" is a multiplier. Thus...

Create3DScene(2)

Would log '6'.

Posted on 2004-07-16 16:22:40

Zip

Added to docs, remember you can do this yourself Omni if you find anything else like this you think might help people out. Every comment welcome.

Zip

Posted on 2004-07-16 17:47:10

vecna

The error is that this compiles.

You (should not be able to) have any named identifier that starts with a number. If a token starts with a number, its assumed to be a number. Try it with C, you can't create a variable or function name that starts with a number.

Posted on 2004-07-16 18:18:25

Zip

Indeed. I tend to avoid numbers in variable names completely, but calling a variable 3DPolygon, most languages would certainly not be happy. I didn't know that the * was not needed in verge though, so does a(b+c) work?

Zip

Posted on 2004-07-16 18:25:47


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.