Smalltalk report
Marcus Denker
denker at iam.unibe.ch
Mon Aug 14 08:55:29 UTC 2006
On 14.08.2006, at 10:47, stéphane ducasse wrote:
> read my joop paper. This is better explained. But I will send you
> the paper so that you can compare :)
>
And have a look at BehaviorTest>>#testChange
testChange
"self debug: #testChange"
| behavior model |
behavior := Behavior new.
behavior superclass: Model.
behavior setFormat: Model format.
model := Model new.
model primitiveChangeClassTo: behavior new.
behavior compile: 'thisIsATest ^ 2'.
self assert: model thisIsATest = 2.
self should: [Model new thisIsATest] raise: MessageNotUnderstood.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3938 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060814/3ddfe1b0/smime.bin
More information about the Squeak-dev
mailing list
|