[BLACKBOX] GPCP REALs to LONGINTs (was: Another (?) Compiler Trap)

From: [at]} <CFB>
Date: Tue, 4 Mar 2008 13:51:10 +1030

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

>-----Original Message-----
>From: BlackBox [mailto:BLACKBOX{([at]})nowhere.xy
>Campbell, Robert (SELEX GALILEO, UK)
>Sent: Monday, 3 March 2008 8:53 PM
>To: BLACKBOX{([at]})nowhere.xy
>Subject: Re: [BLACKBOX] Another (?) Compiler Trap
>
>The code above is NOT transportable because it uses
>SYSTEM.VAL. Chris, if you are listening, is there a Gardens
>Point way of type casting REALs to LONGINTs without changing
>the bit patterns?
>

Yes:

  RTS.realToLongBits(r: REAL): LONGINT;

Regards,
Chris

Chris Burrows
CFB Software
http://www.cfbsoftware.com/cp


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-2058219298_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwID4tLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLVxw
YXINCj5Gcm9tOiBCbGFja0JveCBbbWFpbHRvOkJMQUNLQk9YQExJU1RTLk9CRVJPTi5DSF0gT24g
QmVoYWxmIE9mIFxwYXINCj5DYW1wYmVsbCwgUm9iZXJ0IChTRUxFWCBHQUxJTEVPLCBVSylccGFy
DQo+U2VudDogTW9uZGF5LCAzIE1hcmNoIDIwMDggODo1MyBQTVxwYXINCj5UbzogQkxBQ0tCT1hA
TElTVFMuT0JFUk9OLkNIXHBhcg0KPlN1YmplY3Q6IFJlOiBbQkxBQ0tCT1hdIEFub3RoZXIgKD8p
IENvbXBpbGVyIFRyYXBccGFyDQo+XHBhcg0KPlRoZSBjb2RlIGFib3ZlIGlzIE5PVCB0cmFuc3Bv
cnRhYmxlIGJlY2F1c2UgaXQgdXNlcyBccGFyDQo+U1lTVEVNLlZBTC4gQ2hyaXMsIGlmIHlvdSBh
cmUgbGlzdGVuaW5nLCBpcyB0aGVyZSBhIEdhcmRlbnMgXHBhcg0KPlBvaW50IHdheSBvZiB0eXBl
IGNhc3RpbmcgUkVBTHMgdG8gTE9OR0lOVHMgd2l0aG91dCBjaGFuZ2luZyBccGFyDQo+dGhlIGJp
dCBwYXR0ZXJucz9ccGFyDQo+XHBhcg0KXHBhcg0KWWVzOlxwYXINClxwYXINCiAgUlRTLnJlYWxU
b0xvbmdCaXRzKHI6IFJFQUwpOiBMT05HSU5UO1xwYXINClxwYXINClJlZ2FyZHMsXHBhcg0KQ2hy
aXNccGFyDQpccGFyDQpDaHJpcyBCdXJyb3dzXHBhcg0KQ0ZCIFNvZnR3YXJlXHBhcg0KaHR0cDov
L3d3dy5jZmJzb2Z0d2FyZS5jb20vY3BccGFyDQpccGFyDQpccGFyDQotLS0tXHBhcg0KVG8gdW5z
dWJzY3JpYmUsIHNlbmQgYSBtZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8g
TElTVFNFUlZATElTVFMuT0JFUk9OLkNIXH19AApccA==
----boundary-LibPST-iamunique-2058219298_-_---
Received on Tue Mar 04 2008 - 04:21:10 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:59 UTC