----boundary-LibPST-iamunique-659169187_-_-
Content-type: text/plain
This is not exactly a language problem. But the report says that
operations (such as adding, multipliing etc) are only effected on INTEGER
variables; in this case b := -b is b := (-1) * b and thus is not allowed.
H. v. Lavergne
On Wed, 21 Jun 2006 16:16:49 +0200, Campbell, Robert D (SELEX) (UK
Edinburgh) <robert.d.campbell{([at]})nowhere.xy
>
> Hi,
>
> I was surprised to find that the
> Following code does not compile:
>
> VAR
> b : BYTE;
> BEGIN
> b := -b
>
>
> Same thing with SHORTINTs.
>
> Is this what the Language Report requires?
>
> Robert
>
> (PS - I have not tried this on the Gardens Point
> Compiler!)
>
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>
> --- BlackBox
> --- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy>
>
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-659169187_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFRoaXMgaXMgbm90IGV4YWN0bHkgYSBsYW5ndWFn
ZSBwcm9ibGVtLiBCdXQgdGhlIHJlcG9ydCBzYXlz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KioqKioqKioqKipccGFyDQo+IFRoaXMgZW1haWwgYW5kIGFu
eSBhdHRhY2htZW50cyBhcmUgY29uZmlkZW50aWFsIHRvIHRoZSBpbnRlbmRlZFxwYXINCj4gcmVj
aXBpZW50IGFuZCBtYXkgYWxzbyBiZSBwcml2aWxlZ2VkLiBJZiB5b3UgYXJlIG5vdCB0aGUgaW50
ZW5kZWRccGFyDQo+IHJlY2lwaWVudCBwbGVhc2UgZGVsZXRlIGl0IGZyb20geW91ciBzeXN0ZW0g
YW5kIG5vdGlmeSB0aGUgc2VuZGVyLlxwYXINCj4gWW91IHNob3VsZCBub3QgY29weSBpdCBvciB1
c2UgaXQgZm9yIGFueSBwdXJwb3NlIG5vciBkaXNjbG9zZSBvclxwYXINCj4gZGlzdHJpYnV0ZSBp
dHMgY29udGVudHMgdG8gYW55IG90aGVyIHBlcnNvbi5ccGFyDQo+ICoqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqXHBhcg0K
PlxwYXINCj4gLS0tIEJsYWNrQm94XHBhcg0KPiAtLS0gc2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5T
VUJTQ1JJQkUgdG8gYmxhY2tib3hAb2Jlcm9uLmNoXHBhcg0KPlxwYXINCj5ccGFyDQpccGFyDQot
LS0gQmxhY2tCb3hccGFyDQotLS0gc2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJTQ1JJQkUgdG8g
YmxhY2tib3hAb2Jlcm9uLmNoXHBhcg0KfX0AAAAAGg=
----boundary-LibPST-iamunique-659169187_-_---
Received on Wed Jun 21 2006 - 17:48:32 UTC