- v.1.5 beta, Stores, bugs

From: [at]} <Gérard>
Date: Thu, 3 Mar 2005 02:07:25 +0100

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

Fyodor,

> The module Stores of BlackBox v.1.5 BETA seems to have a pair of similar
bugs:
> The parameter d in the following two procedures ought to be a VAR (as for
GetThisType)?
>
> PROCEDURE ThisId (d: TypeDict; t: TypeName): INTEGER;
> PROCEDURE ThisBaseId (d: TypeDict; id: INTEGER): INTEGER;
>
> This is needed for the optimizations in the procedure body to work
correctly (the bringing of the found "dictionary line" to the top of the
list).
> Without VAR, the corresponding list element is lost when the procedure is
exited.

Yes, I think you're right. I don't know exactlly what these procedures do

but it seems clear that they destroy the structure of the list d if this
parameter is not VAR.

It's surprising, since Stores works well.

You should send a bug report to Oms.

Cheers.

Gérard

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



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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBGeW9kb3IsXHBhcg0KXHBhcg0K
PiBUaGUgbW9kdWxlIFN0b3JlcyBvZiBCbGFja0JveCB2LjEuNSBCRVRBIHNlZW1zIHRvIGhhdmUg
YSBwYWlyIG9mIHNpbWlsYXJccGFyDQpidWdzOlxwYXINCj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xwYXINClxwYXINCkNoZWVycy5ccGFyDQpccGFyDQpHXCdlOXJh
cmRccGFyDQpccGFyDQotLS0gQmxhY2tCb3hccGFyDQotLS0gc2VuZCBzdWJqZWN0IEhFTFAgb3Ig
VU5TVUJTQ1JJQkUgdG8gYmxhY2tib3hAb2Jlcm9uLmNoXHBhcg0KXHBhcg0KfQ=


----boundary-LibPST-iamunique-307819437_-_---
Received on Thu Mar 03 2005 - 02:07:25 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:22 UTC