Why a constant is not constant?

From: [at]} <Wojtek>
Date: Thu, 13 Jun 2002 22:42:55 -0400 (EDT)

----boundary-LibPST-iamunique-1914771713_-_-
Content-type: text/plain

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.

This is somewhat an academic question because I can write
an appropriate SET by hand, but I was puzzled. This error
does not make good sense to me.

I am sending this message to the mailing list rather than
to support, because the mailing list has been sleepy lately.
No errors, no bugs in BlackBox? Only unimportant problems
like this one? Or is nobody using BlackBox anymore ;-)?

Wojtek Skulski skulski{([at]})nowhere.xy

--------------------------------------------

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-1914771713_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1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