[Gambas-user] $, # and DIM

Benoît Minisini gambas at ...1...
Thu Jan 23 20:40:29 CET 2003


Le Mercredi 22 Janvier 2003 20:42, Jochen Georges a écrit :
> On Tuesday 21 January 2003 22:02, Benoît Minisini wrote:
> > Le Mardi 21 Janvier 2003 21:13, jochen.georges at ...22... a écrit :
> > > hello gambasians,
> > >
> > > three litle questions:
> > >
> > > 111
> > > what does a "$" mean as the first character of a variables
> > > name?
> >
> > In Gambas, you can't put a "$" in the beginning of a variable
> > name ! Or dou you mean the LAST character ?
> > Or am I wrong, and it is a compiler bug then.
>
> sorry, i wrote the mail not at my computer, so i confounded § and $.
>
> so, again:
> what does a § in front of a variable mean?
> PRIVATE §hExpr AS NEW Expression

Nothing. It is just a special character discretely allowed in identifier 
names. I use it for identifying global variables. I think I will remove it in 
the future, because it is possible that this character is only directly 
accessible from a french keyboard ! Sorry for that :-)

>
> what does a # in front of a variable mean?
> OPEN FileName FOR READ AS #FileName

It just a syntactic decoration coming from the syntax of the BASIC. Try to 
remove it, maybe it is optional. If not, I could easily modify the compiler 
so that it becomes optional.

>
>
> thanks for any hint.
>
> best egruesse
> jochen
>
>

Regards,

-- 
Benoît Minisini
mailto:gambas at ...1...




More information about the User mailing list