----boundary-LibPST-iamunique-336481685_-_-
Content-type: text/plain
Walter:
thanks a lot. Your advice works. Perhaps surprising,
because both BITS and SYSTEM.VAL are described as "procedures"
in the BB documentation, so why the difference? I vaguely
remember, that SYSTEM.VAL was used for constant typecasts
in Oberon, but maybe my recollection is wrong.
In any case, BITS are allowed in the CONST section.
Thanks a lot!
Wojtek Skulski skulski{([at]})nowhere.xy
On Sat, 15 Jun 2002, Walter D. Gallegos wrote:
> Hello:
>
> Wojtek:
>
> Tray to use :
>
> CONST
> GENERIC_READ* = 080000000H;
> GR* = BITS(080000000H);
>
> I think that SYSTEM.VAL is evaluate as a procedure not a as constant value.
>
> Walter.
> ( We continue using BB1.3 Comercial, and our company don't have plans to
> change);
>
> -----Mensaje original-----
> De: Wojtek Skulski <skulski{([at]})nowhere.xy> Para: BlackBox <blackbox{([at]})nowhere.xy> CC: Wojtek Skulski <skulski{([at]})nowhere.xy> Fecha: Viernes, 14 de Junio de 2002 10:26 a.m.
> Asunto: Why a constant is not constant?
>
>
> >Hello:
> >
> > While translating the C-style headers into CP I tried
> >the following:
> >
> >MODULE EzusbAPI;
> >IMPORT SYSTEM, WinApi;
> >
> >CONST
> > GENERIC_READ* = 080000000H;
> > GR* = SYSTEM.VAL(SET, 080000000H);
> >
> >The second const does not compile. The error message says
> >"expression should be constant". Why an error? It is a constant.
> >
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-336481685_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Dis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