[Vm-dev] Possible PrimErrNotFound bug (was Re: [squeak-dev] Inbox/Files-monty.172)
monty
monty2 at programmer.net
Wed Sep 6 03:19:53 UTC 2017
Eliot, when you write a method like this:
StandardFileStream>>primAnAbsentPrimitiveMethod
<primitive: 'primitiveAnAbsentPrimitiveMethod' module: 'FilePlugin' error: errorCode>
^ errorCode
and the named primitive is absent, you reliably get PrimErrNotFound as the error code the first time, but it's often nil after:
(1 to: 1000) collect: [:i | (StandardFileStream fileNamed: 'test.txt') primAnAbsentPrimitiveMethod ]
Is this a bug?
More information about the Vm-dev
mailing list