- v.1.5 beta, Models, a bug

From: CFB Software <"CFB>
Date: Thu, 3 Mar 2005 09:41:25 +1030

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

I don't see the problem. Neither the existing assignment of NIL to
'script', nor the one you suggest should be added, are actually
necessary to satisfy the post-condition. As 'script' is a pointer and
declared as an OUT parameter, BlackBox automatically initialises it to
NIL.

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

> -----Original Message-----
> From: blackbox{([at]})nowhere.xy
> Behalf Of Fyodor Tkachov
> Sent: Thursday, 3 March 2005 5:13 AM
> To: BlackBox Mailing List
> Subject: [BlackBox] - v.1.5 beta, Models, a bug
>
>
>
> 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;
>

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



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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtcc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YXINCi0tLSBCbGFja0JveFxwYXINCi0tLSBzZW5kIHN1YmplY3QgSEVMUCBvciBV
TlNVQlNDUklCRSB0byBibGFja2JveEBvYmVyb24uY2h9fQAAWJRSAAIBAAA/


----boundary-LibPST-iamunique-225550213_-_---
Received on Thu Mar 03 2005 - 00:11:25 UTC

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