[Info-vax] BASIC (and Horizon)
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Wed Jan 31 13:22:37 EST 2024
On 2024-01-31, Arne Vajhøj <arne at vajhoej.dk> wrote:
>
> For the not VB.NET knowledgable:
>
> Using o1 As New X("A")
> ...
> End Using
>
> calls o1.Dispose() when the block is exited no matter how it
> is exited - normal or exception does not matter Dispose is
> always called.
>
Unless there is a power failure or a system crash.
I wonder how many people think of that one when assuming that their
state reset code will _always_ run after execution of the routine
has started. :-)
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list