Sujet : Re: portable or not? Volatile strings
De : mhx (at) *nospam* iae.nl (mhx)
Groupes : comp.lang.forthDate : 14. Aug 2024, 15:06:25
Autres entêtes
Organisation : novaBBS
Message-ID : <9f0673c854a961df63960f6a435ae0b9@www.novabbs.com>
References : 1 2 3 4 5
User-Agent : Rocksolid Light
On Wed, 14 Aug 2024 10:38:55 +0000,
albert@spenarnc.xs4all.nl wrote:
[..]
Example
CREATE $VAR1 100 ALLOT
"AAP" \ is permanent. (somehow )
2DUP $VAR1 $! \ You take responsibilty that `$VAR is large enough
\ The constant string is still on the stack and can be reused.
Oh, now you point to an unwanted, or complicating, effect.
The phrase ' "aap" must create the string before its descriptor
can be returned. Unless, of course, "aap" exists already. A ticked
number has the same problem.
Just make that exception?
-marcel