- ASSERT(condition, 128)

From: CFB Software <"CFB>
Date: Thu, 31 Aug 2006 21:02:42 +0930

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

Hi Andrew,

That's strange - there's incosistent behaviour here. In the section on
Assertions in the BlackBox Programming Conventions only the values 0 ..
127 are listed. If you follow their recommendations you should only use
values in the range 0..120 and 126.

If you attempt to use a value greater than 128 the compiler gives the
error message:

'illegal value of parameter (0<= p < 128)'

It seems it should, but is not, trapping the error at compile-time when
the parameter = 128.

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

> -----Original Message-----
> From: blackbox{([at]})nowhere.xy
> Behalf Of A Thomas
> Sent: Thursday, 31 August 2006 7:28 PM
> To: BlackBox Mailing List
> Subject: [BlackBox] - ASSERT(condition, 128)
>
>
> Hei BlackBox friends,
>
> Has anyone used an ASSERT(condition, 128) in their code
> and noticed
> very strange effects (for example abnormal procedure
> returns). I spent days
> trying to debug a model. I finally tracked the problem down to the
> ASSERT(condition, 128) When I changed this to
> ASSERT(condition, 127) there
> was no proble. So what is special about the 128?
>
> Moi
>
> Andrew
>
> --- BlackBox
> --- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
>

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



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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1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IEhFTFAgb3IgVU5TVUJTQ1JJQkUgdG8gYmxhY2ti
b3hAb2Jlcm9uLmNoXHBhcg0KfX0AAAEAYg==


----boundary-LibPST-iamunique-1669566824_-_---
Received on Thu Aug 31 2006 - 13:32:42 UTC

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