[squeak-dev] Nasty side effect
Jakob Reschke
jakob.reschke at student.hpi.de
Thu Feb 23 11:25:23 UTC 2017
2017-02-23 10:08 GMT+01:00 Tobias Pape <Das.Linux at gmx.de>:
> I'm onto (2), and frankly, I was surprised to learn that:
>
> squeak-dir$ mkdir foo
> squeak-dir$ chmod -w foo
>
> and then
> (FileDirectory default / 'foo') newFileNamed: 'bar'. "==> nil"
>
> this Must Not happen.
What do you expect instead, an Exception? In StandardFileStream
open:forWrite: it reads
fileID ifNil: [^ nil]. "allows sender to detect failure"
which means some indirect senders do not seem to pay attention properly.
More information about the Squeak-dev
mailing list
|