[BUG] Using variable called 'next' in a Type fails (conclusion: not a bug)

Started by Sandman, December 04, 2008, 11:17:48 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sandman

This works:
Type Entry;
    Entry* zomg;
End


This doesn't:
Type Entry;
    Entry* next;
End

Result:
file.prg:2: error: END expected ("*")
Somehow only failed when using a variable called 'next' in a Type.

[EDIT]
Conclusion:
Not a bug, as can be concluded from the replies.
-- Sandman

SplinterGU

next is reserved word...
check c_main.c, you'd must know it...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Sandman

#2
I will tell it even more awesome: I have no clue what it does. :P

[EDIT]
I also browsed through my DIV manual, but couldn't find it. If I had to guess though, it would be to go to the next Case in a Switch statement? Ugh I dunno!  ;D
-- Sandman

SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Sandman

Okay, still don't know it. Is there some documentation on it somewhere? Could you explain it otherwise?
-- Sandman


Sandman

Alright, looks interesting. Don't quite understand it all though.

I must say that I find the reservation of 'next' quite annoying. From the looks of it, it doesn't seem to hurt the grammar if you made it possible to have variables called 'next', or am I wrong here?
-- Sandman

SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2