Re: NIL

From: Douglas G. Danforth <"Douglas>
Date: Thu, 07 Oct 2004 14:00:33 -0400

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

Gerard,
The 1.4 compiler with service pack 1 gives an error for your code at the
place I have marked with [X]

MODULE PrivNil;

  CONST

   NIL[X] = 0;

  END PrivNil.

The error message is "PROCEDURE, BEGIN, or END missing."

-Doug


Gérard Meunier wrote:
>>In the Language Report, NIL is included in the list of Operators and
>
> delimiters (sec. 3.5)
>
>>but it is a constant, isn't it, so it ought to be among the predeclared
>
> identifiers (sec. 4)?
>
>>Am I missing something?

>
>
> Hello Fyodor,
>
> It depends on the way the compiler manages it. The test module below shows
> that the compiler considers it as being a keyword, recognized at the lexical
> level, and that it conforms to the language report.
>
> MODULE PrivNil;
>
> CONST
>
> NIL = 0;
>
> END PrivNil.
>
> Cheers.
>
> Gérard
>
> --------------------------------------------
>
> 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-1629635411_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBHZXJhcmQsXHBhcg0KVGhlIDEu
NCBjb21waWxlciB3aXRoIHNlcnZpY2UgcGFjayAxIGdpdmVzIGFuIGVycm9yIGZvciB5b3VyIGNv
ZGUgYXQgdGhlIFxwYXINCnBsYWNlIEkgaGF2ZSBtYXJrZWQgd2l0aCBbWF1ccGFyDQpccGFyDQpN
T0RVTEUgUHJpdk5pbDtccGFyDQpccGFyDQogIENPTlNUXHBhcg0KXHBhcg0KICAgTklMW1hdID0g
MDtccGFyDQpccGFyDQogIEVORCBQcml2TmlsLlxwYXINClxwYXINClRoZSBlcnJvciBtZXNzYWdl
IGlzICJQUk9DRURVUkUsIEJFR0lOLCBvciBFTkQgbWlzc2luZy4iXHBhcg0KXHBhcg0KLURvdWdc
cGFyDQpccGFyDQpccGFyDQpHXCdlOXJhcmQgTWV1bmllciB3cm90ZTpccGFyDQo+PkluIHRoZSBM
YW5ndWFnZSBSZXBvcnQsIE5JTCBpcyBpbmNsdWRlZCBpbiB0aGUgbGlzdCBvZiBPcGVyYXRvcnMg
YW5kXHBhcg0KPiBccGFyDQo+IGRlbGltaXRlcnMgKHNlYy4gMy41KVxwYXINCj4gXHBhcg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