[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] Add accurate check for console stdio + add associated primitive (#254)

Alistair Grant akgrant0710 at gmail.com
Tue Apr 24 16:34:09 UTC 2018


Hi Tim,

On 24 April 2018 at 18:25, tim Rowledge <tim at rowledge.org> wrote:
>
>
>
>> On 23-04-2018, at 10:34 PM, akgrant43 <notifications at github.com> wrote:
>>
>>       • Actually, since the result is always stored in the SQFile structure for the stdio streams, the primitive could just return the cached value rather than determining it every time.
>
> Unless it can change from external commands?

I'm not aware of any way this can be done, but also don't claim any
particular expertise (for a long time the VM has assumed that it
doesn't change).

If there is a way to change the stdio stream the correct approach is
to ensure that the SQFile structure is updated appropriately, so it
will still be OK to answer the cached value.

Cheers,
Alistair


More information about the Vm-dev mailing list