Two questions

GTE/staypufd staypufd at
Sat Jun 27 05:32:29 UTC 1998


Your code should be like so:

^self class new: value + (self negated and: [aProbablity negated]) value

The reason is is that the 'and:' msg is a keyword msg that takes a block 
of code as an argument. Its' declaration will be like so: 

and: aBlock

< code here >

Look at the implementors of 'and:' and you'll see what I mean....

Hope this helps,

Sam Griffith Jr.
staypufed at
staypufd at

More information about the Squeak-dev mailing list