Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #17490

Re: "comus" words

From "Ed" <invalid@nospam.com>
Newsgroups comp.lang.forth
Subject Re: "comus" words
Date 2012-11-23 13:56 +1100
Organization Aioe.org NNTP Server
Message-ID <k8moln$phl$1@speranza.aioe.org> (permalink)
References (2 earlier) <6d30e8aa-e0fa-483f-87be-14f2fc2e8faa@eo2g2000vbb.googlegroups.com> <k8f4im$i1l$1@speranza.aioe.org> <2012Nov20.112219@mips.complang.tuwien.ac.at> <k8iq9s$eap$1@speranza.aioe.org> <2012Nov21.163409@mips.complang.tuwien.ac.at>

Show all headers | View raw


Anton Ertl wrote:
> "Ed" <invalid@nospam.com> writes:
> >Anton Ertl wrote:
> >> "Ed" <invalid@nospam.com> writes:
> >> >I don't recall what conditions '94 has placed on the use of S" in
> >> >a Standard Program but I'd be amazed if it sought to exclude
> >> >implementations from using WORD - which had been Forth's
> >> >standard string parser from earliest times.
> >>
> >> There is no need to "seek to exclude implementations from using WORD"
> >> when implementing S".  WORD is so limited that it excludes itself, at
> >> least from sensible and correct implementations.  E.g.,
> >>
> >> S" " . DROP
> >>
> >> is a standard program and should print 0.
> >
> >I would say the result is ambiguous and therefore not a '94 portable
> >program.
>
> There is no such ambiguous condition in the specification of S".

Neither do S" or ." specify strings need to be preceded with a space.

Do you really need a Forth Standard to tell you that generating null
strings with S" or ." is unnecessary?

> >Should I ever need a '94 program to generate a zero length string
> >then I'll use something that I know will work e.g.  HERE 0
>
> Sure, as a programmer you are free to avoid using some standard
> features working around arbitrary restrictions of your own invention.
> As a system implementor, you have to provide standard features if you
> want to claim compliance.
>
> >WORD and S" are required in '94.
>
> So what?  U. is also in CORE, but that does not mean it has to be used
> in S" or vice versa.
>
> >It would be absurd to require S" be able to generate empty strings when
> >PARSE was not available.

Re-reading the above I can't believe I had to say it.  Just the thought of
generating null strings via S" is mind-boggling.

> It's the system implementors' decision whether PARSE is available to
> programs; by contrast, compliant systems are required to have a
> correct S".  If the combination of 'no PARSE' and 'correct S"'is
> indeed absurd, there will be no such system around; all the better!

Chuck considered *practical* needs when he designed Forth.  It didn't
concern him in the least that character and string literals in Forth didn't
appear, or behave like, those in other languages.  He had better things
to do.


Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

"comus" words "Rod Pemberton" <do_not_have@notemailnotz.cnm> - 2012-11-18 20:55 -0500
  Re: "comus" words "Elizabeth D. Rather" <erather@forth.com> - 2012-11-18 16:28 -1000
  Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-19 20:14 +1100
    Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-19 07:20 -0800
      Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-20 16:30 +1100
        Re: "comus" words anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-11-20 10:22 +0000
          Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-22 01:59 +1100
            Re: "comus" words Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-11-21 09:34 -0600
            Re: "comus" words anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-11-21 15:34 +0000
              Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-23 13:56 +1100
                Re: "comus" words "Elizabeth D. Rather" <erather@forth.com> - 2012-11-22 19:21 -1000
                Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-24 12:14 +1100
                Re: "comus" words "Elizabeth D. Rather" <erather@forth.com> - 2012-11-23 17:21 -1000
                Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-25 18:37 +1100
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-25 02:38 -0800
                Re: "comus" words Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-11-25 05:11 -0600
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-25 03:33 -0800
                Re: "comus" words Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-11-25 05:45 -0600
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-25 10:47 -0800
                Re: "comus" words Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-11-25 16:05 -0600
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-26 04:06 -0800
                Re: "comus" words albert@spenarnc.xs4all.nl (Albert van der Horst) - 2012-11-26 15:12 +0000
                Re: "comus" words "Rod Pemberton" <do_not_have@notemailnotz.cnm> - 2012-11-26 04:56 -0500
                Re: "comus" words Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-11-26 05:16 -0600
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-26 03:51 -0800
                Re: "comus" words "Rod Pemberton" <do_not_have@notemailnotz.cnm> - 2012-11-27 07:29 -0500
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-27 11:05 -0800
                Re: "comus" words "Rod Pemberton" <do_not_have@notemailnotz.cnm> - 2012-11-28 07:09 -0500
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-28 10:13 -0800
                Re: "comus" words "Rod Pemberton" <do_not_have@notemailnotz.cnm> - 2012-11-29 06:09 -0500
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-29 03:22 -0800
                Re: "comus" words Peter Knaggs <pjk@bcs.org.uk> - 2012-11-29 21:32 +0000
                Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-27 12:44 +1100
                Re: "comus" words Coos Haak <chforth@hccnet.nl> - 2012-11-27 17:59 +0100
                Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-29 12:53 +1100
                Re: "comus" words Coos Haak <chforth@hccnet.nl> - 2012-11-29 10:59 +0100
                Re: "comus" words Mark Wills <forthfreak@gmail.com> - 2012-11-29 02:22 -0800
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-29 02:58 -0800
                Re: "comus" words Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-11-29 05:53 -0600
                Re: "comus" words "Elizabeth D. Rather" <erather@forth.com> - 2012-11-29 09:38 -1000
                Re: "comus" words Andy Valencia <vandys@vsta.org> - 2012-11-29 13:10 +0000
                Re: "comus" words anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-11-29 13:52 +0000
                Re: "comus" words Mark Wills <forthfreak@gmail.com> - 2012-11-29 06:09 -0800
                Re: "comus" words Andy Valencia <vandys@vsta.org> - 2012-11-29 15:43 +0000
                Re: "comus" words Coos Haak <chforth@hccnet.nl> - 2012-11-29 21:01 +0100
                Re: "comus" words Bernd Paysan <bernd.paysan@gmx.de> - 2012-11-29 23:17 +0100
                Re: "comus" words "Elizabeth D. Rather" <erather@forth.com> - 2012-11-29 17:01 -1000
                Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-30 08:30 +1100
                Re: "comus" words Coos Haak <chforth@hccnet.nl> - 2012-11-29 23:06 +0100
                Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-30 16:23 +1100
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-29 03:14 -0800
                Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-30 08:31 +1100
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-29 14:41 -0800
                Re: "comus" words "Ed" <invalid@nospam.com> - 2012-11-30 16:19 +1100
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-30 02:31 -0800
                Re: "comus" words "Ed" <invalid@nospam.com> - 2012-12-04 03:53 +1100
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-12-03 10:45 -0800
                Re: "comus" words "Ed" <invalid@nospam.com> - 2012-12-06 18:31 +1100
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-12-06 01:37 -0800
                Re: "comus" words albert@spenarnc.xs4all.nl (Albert van der Horst) - 2012-12-06 13:31 +0000
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-12-06 07:07 -0800
                Re: "comus" words "Elizabeth D. Rather" <erather@forth.com> - 2012-11-29 17:04 -1000
                Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-30 02:29 -0800
  Re: "comus" words Mark Wills <forthfreak@gmail.com> - 2012-11-19 05:33 -0800
  Re: "comus" words anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-11-19 14:45 +0000
  Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-19 07:43 -0800
    Re: "comus" words Alex McDonald <blog@rivadpm.com> - 2012-11-19 07:45 -0800
  Re: "comus" words oh2aun@gmail.com - 2012-11-22 21:10 -0800

csiph-web