- v.1.5 beta, Models, a bug
----boundary-LibPST-iamunique-696848150_-_-
Content-type: text/plain
An assingment is missing in the module Models of BlackBox v.1.5 BETA:
PROCEDURE BeginScript* (m: Model; name: Stores.OpName; OUT script: Stores.Operation);
(** post: (script # NIL) iff (m.domain # NIL) **)
VAR seq: ANYPTR;
BEGIN
ASSERT(m # NIL, 20);
IF m.Domain() # NIL THEN seq := m.Domain().GetSequencer() ELSE seq := NIL END;
IF seq # NIL THEN
WITH seq: Sequencers.Sequencer DO
seq.BeginScript(name, script)
ELSE
script := NIL (* this is missing **********************************)
END
ELSE script := NIL
END
END BeginScript;
Compare the above with EndScript:
PROCEDURE EndScript* (m: Model; script: Stores.Operation);
(** pre: (script # NIL) iff (m.seq # NIL) **)
VAR seq: ANYPTR;
BEGIN
ASSERT(m # NIL, 20);
IF m.Domain() # NIL THEN seq := m.Domain().GetSequencer() ELSE seq := NIL END;
IF seq # NIL THEN
ASSERT(script # NIL, 21);
WITH seq: Sequencers.Sequencer DO
seq.EndScript(script)
ELSE
ASSERT(script = NIL, 21)
END
ELSE
ASSERT(script = NIL, 21)
END
END EndScript;
Cheers
Fyodor.Tkachov{([at]})nowhere.xy
Powered by the E-mail PIM - Info Select - www.miclog.com
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-696848150_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFx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GFyDQpDaGVlcnNccGFyDQpGeW9kb3IuVGthY2hvdkBjZXJuLmNo
XHBhcg0KXHBhcg0KUG93ZXJlZCBieSB0aGUgRS1tYWlsIFBJTSAtIEluZm8gU2VsZWN0IC0gd3d3
Lm1pY2xvZy5jb21ccGFyDQpccGFyDQotLS0gQmxhY2tCb3hccGFyDQotLS0gc2VuZCBzdWJqZWN0
IEhFTFAgb3IgVU5TVUJTQ1JJQkUgdG8gYmxhY2tib3hAb2Jlcm9ufX0AZnlvZG9yLnRrYWNobw=
----boundary-LibPST-iamunique-696848150_-_---
Received on Wed Mar 02 2005 - 19:42:30 UTC
This archive was generated by hypermail 2.3.0
: Thu Sep 26 2013 - 06:28:22 UTC