[squeak-dev] Nasty side effect
Tobias Pape
Das.Linux at gmx.de
Thu Feb 23 12:01:43 UTC 2017
On 23.02.2017, at 12:25, Jakob Reschke <jakob.reschke at student.hpi.de> wrote:
> 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.
>
All of them…
More information about the Squeak-dev
mailing list
|