TH> Declaring an numerical constant is done simply by preceeding the
> name with a '%' char as in %constant = declares a string constant.
MV> PB presently only supports integer-constants...
I suspect that a string constant simply is a pointer to the text of
the string. Thus literals are essentially constants. However, the
numerical constants are global by default, I wish such string
literals were, too.
MV> If PowerBASIC, inc. decides to add constants for all available
> types, they will run into a slight problem... OPEN File$ FOR
> BINARY AS #Handle Is it a constant, or a variable?:-) Only one of
> the two can exist at a time, but it can be confusing:(
I believe that the 'type' of a varable is stored.
--- Maximus/2 3.01
---------------
* Origin: Madman BBS * Chico, California * 916-893-8079 * (1:119/88)
|