Re: RfD -- FVALUE vsn 2.0



hansoft@xxxxxxxxxxx wrote:
On Feb 22, 1:20?am, Jonah Thomas <jethom...@xxxxxxxxx> wrote:
I don't like overloading TO . TO already has to look at the name it
affects and decide whether it's a value or a local. Now you want it to
also decide whether it's a floating value.

I don't like overloading too. It is strange to see that the undoing
of STATE-smart words (while STATE smart words made *some* sense; it
made the language easier to comprehend) was joined with overloading
words (which is another way to make words smart).

But TO isn't really overloaded: that's just a convenient fiction of
the way the language is standardized. All TO has to do is set a flag,
and then execute or compile the action of the name. So, this is AFAIK
allowed:

variable flag
: to 1 flag ! ; immediate
: value
create , immediate
does>
state @ if
postpone literal
flag @ if postpone ! else postpone @ then
else
flag @ if ! else @ then then
0 flag ! ;

I don't like the "state @ if" but the definition of VALUE rather
requires it. I'd rather there were no state-smart words at all, but
that battle was lost in 1994.

Mind you, I agree totally that FVALUE adds nothing useful to the
language: we already have perfectly good VARIABLEs already. However,
quite a few people seem to use it, and apparently that's the only
requirement for standardization.

Andrew.
.



Relevant Pages

  • Re: RfD -- FVALUE vsn 2.0
    ... the ' could fail to find the name and throw a system exception. ... need to clear the flag, as does start up, QUIT and what else? ... language at the other, ... theory permit strongly checking implementations that will warn the ...
    (comp.lang.forth)
  • Re: Exit Sub in C#
    ... flag goes away. ... language behave differently to each other. ... public void Func() ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Last event
    ... Than take care that all intitialisation is done before the events are set. ... This depends really how to do on the language you are using and than it is ... I think the flag ...
    (microsoft.public.dotnet.general)
  • Re: Multi precision floating point
    ... Where the phrase "the language" refers to something other than C. ... All this extensions are compatible with the C standard as ... -ansic flag, ...
    (comp.lang.c)
  • Re: in your language.
    ... Discover the site of the photographs Group of voyages in your ... Return on http://podo2a.keo.in and click on the flag of your country ... (Choose your language) ... Click on the Italian flag (Green, White, Red vertical stripes, next to ...
    (rec.travel.air)

Loading