----boundary-LibPST-iamunique-4894031_-_-
Content-type: text/plain
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.
>
>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.
--------------------------------------------
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-4894031_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhlbGxvOlxwYXINClxwYXINCldvanRlazpccGFy
DQpccGFyDQpUcmF5IHRvIHVzZSA6XHBhcg0KXHBhcg0KQ09OU1RccGFyDQpHRU5FUklDX1JFQUQq
ID0gMDgwMDAwMDAwSDtccGFyDQpHUiogPSBCSVRTKDA4MDAwMDAwMEgpO1xwYXINClxwYXINCkkg
dGhpbmsgdGhhdCBTWVNURU0uVkFMIGlzIGV2YWx1YXRlIGFzIGEgcHJvY2VkdXJlIG5vdCBhIGFz
IGNvbnN0YW50IHZhbHVlLlxwYXINClxwYXINCldhbHRlci5ccGFyDQooIFdlIGNvbnRpbnVlIHVz
aW5nIEJCMS4zIENvbWVyY2lhbCwgYW5kIG91ciBjb21wYW55IGRvbid0IGhhdmUgcGxhbnMgdG9c
cGFyDQpjaGFuZ2UpO1xwYXINClxwYXINCi0tLS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