- BYTE arithmetic

From: [at]} <Rex>
Date: Thu, 22 Jun 2006 08:35:10 -0500

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

At 08:37 AM 6/22/06 +0200, Bernhard Treutwein wrote:
>The point is: INC(b) returns BYTE as opposed
>to b := b + 1 which produces a compiler error since
>b + 1 is INTEGER. In the latter case you have to explicitely
>use SHORT(SHORT(b+1)) to get it to compile.
>
>At least the possible (silent? by default) loss of digits is
>labeled in the latter case.

        Thanks for pointing out that BYTE arithmetic is not supported, and
for providing a workaround. Note, however, that the workaround is
inconsistent. Variables of type INTEGER can also overflow, but this method
doesn't give you any protection against that.

Rex Couture

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-761170564_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEF0IDA4OjM3IEFNIDYvMjIvMDYgKzAyMDAsIEJl
cm5oYXJkIFRyZXV0d2VpbiB3cm90ZTpccGFyDQo+VGhlIHBvaW50IGlzOiBJTkMoYikgcmV0dXJu
cyBCWVRFIGFzIG9wcG9zZWRccGFyDQo+dG8gYiA6PSBiICsgMSB3aGljaCBwcm9kdWNlcyBhIGNv
bXBpbGVyIGVycm9yIHNpbmNlIFxwYXINCj5iICsgMSBpcyBJTlRFR0VSLiBJbiB0aGUgbGF0dGVy
IGNhc2UgeW91IGhhdmUgdG8gZXhwbGljaXRlbHlccGFyDQo+dXNlIFNIT1JUKFNIT1JUKGIrMSkp
IHRvIGdldCBpdCB0byBjb21waWxlLlxwYXINCj5ccGFyDQo+QXQgbGVhc3QgdGhlIHBvc3NpYmxl
IChzaWxlbnQ/IGJ5IGRlZmF1bHQpIGxvc3Mgb2YgZGlnaXRzIGlzXHBhcg0KPmxhYmVsZWQgaW4g
dGhlIGxhdHRlciBjYXNlLlxwYXINClxwYXINCiAgICAgICAgVGhhbmtzIGZvciBwb2ludGluZyBv
dXQgdGhhdCBCWVRFIGFyaXRobWV0aWMgaXMgbm90IHN1cHBvcnRlZCwgYW5kXHBhcg0KZm9yIHBy
b3ZpZGluZyBhIHdvcmthcm91bmQuICBOb3RlLCBob3dldmVyLCB0aGF0IHRoZSB3b3JrYXJvdW5k
IGlzXHBhcg0KaW5jb25zaXN0ZW50LiAgVmFyaWFibGVzIG9mIHR5cGUgSU5URUdFUiBjYW4gYWxz
byBvdmVyZmxvdywgYnV0IHRoaXMgbWV0aG9kXHBhcg0KZG9lc24ndCBnaXZlIHlvdSBhbnkgcHJv
dGVjdGlvbiBhZ2FpbnN0IHRoYXQuXHBhcg0KXHBhcg0KUmV4IENvdXR1cmVccGFyDQpccGFyDQot
LS0gQmxhY2tCb3hccGFyDQotLS0gc2VuZCBzdWJqZWN0IEhFTFAgb3IgVU5TVUJTQ1JJQkUgdG8g
YmxhY2tib3hAb2Jlcm9uLmNofX0AXHBhcg0KXHRhYg==


----boundary-LibPST-iamunique-761170564_-_---
Received on Thu Jun 22 2006 - 15:35:10 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:50 UTC