[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Crash with local variables and EXIT
From: |
Bernd Paysan |
Subject: |
Re: Crash with local variables and EXIT |
Date: |
Sun, 01 Aug 2021 18:13:32 +0200 |
Am Sonntag, 1. August 2021, 18:06:53 CEST schrieb David Kuehling:
> Hi,
>
> I just stumbled over a peculiar Gforth crash bug involving use of local
> variables and ?EXIT:
>
> A condensed demonstration of the crash is this code:
>
> --8<--
>
> : test ( flag -- )
>
> 0 { var }
> ?EXIT
> 1 { var } ;
>
> false test
> --8<--
>
> This only happens when re-using a local variable name and only when
> having the ?EXIT in between.
Very strange that only reusing the local variable name triggers this.
--
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/
signature.asc
Description: This is a digitally signed message part.