Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #56468
| From | "HAA" <someone@microsoft.com> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Define a variable only not defined. |
| Date | 2017-03-30 10:03 +1000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <obhek7$1upr$1@gioia.aioe.org> (permalink) |
| References | <252d2e3a-a277-4447-9bb0-7de4955d03d6@googlegroups.com> |
Faisal wrote: > I want to define a forth variable only if not defined. Basically I want to avoid the > redefinition of variables. Is there any word in forth to support this? I'm thinking > about something like this(hypothetical code). > > : DefineOnly (varname) > (Ifndef) varname > variable varname > (then) > ; What if pre-existing 'varname' happens not to be a variable? Bad luck?
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Define a variable only not defined. Faisal <faisalm83@gmail.com> - 2017-03-29 02:39 -0700
Re: Define a variable only not defined. minforth@arcor.de - 2017-03-29 04:20 -0700
Re: Define a variable only not defined. Faisal <faisalm83@gmail.com> - 2017-03-29 04:26 -0700
Re: Define a variable only not defined. Coos Haak <htrofhc@gmail.com> - 2017-03-29 14:58 +0200
Re: Define a variable only not defined. Alex <alex@rivadpm.com> - 2017-03-29 14:41 +0100
Re: Define a variable only not defined. anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-03-29 13:54 +0000
Re: Define a variable only not defined. Mikael Nordman <oh2aun@gmail.com> - 2017-03-29 12:06 -0700
Re: Define a variable only not defined. Coos Haak <htrofhc@gmail.com> - 2017-03-29 21:30 +0200
Re: Define a variable only not defined. Mikael Nordman <oh2aun@gmail.com> - 2017-03-29 12:53 -0700
Re: Define a variable only not defined. "HAA" <someone@microsoft.com> - 2017-03-30 10:03 +1000
Re: Define a variable only not defined. Julian Fondren <julian.fondren@gmail.com> - 2017-03-29 19:00 -0700
Re: Define a variable only not defined. "Elizabeth D. Rather" <erather@forth.com> - 2017-03-29 16:35 -1000
csiph-web