[Gambas-devel] Problem with super

Benoit Minisini gambas at ...1...
Thu Apr 7 10:52:55 CEST 2005


On Wednesday 06 April 2005 23:08, fabien wrote:
> When i do :
>     FOR EACH obj IN SUPER
>       obj.Print()
>     NEXT
>
> it don't work why ?
>
> super is a collection
>
> Fabien
>

The Gambas compiler tries to let you use reserved keyword as identifier. But 
sometimes (like there), it can't.

To force the compiler not to interpret an identifier as a keyword, use braces:

FOR EACH obj IN {Super}
...
NEXT

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the Devel mailing list