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


Groups > comp.lang.forth > #11247

Re: Syntax and backwards compatibility objects.fs revision

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: Syntax and backwards compatibility objects.fs revision
Date 2012-04-13 12:48 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2012Apr13.144849@mips.complang.tuwien.ac.at> (permalink)
References <2012Apr12.150832@mips.complang.tuwien.ac.at> <4f86f932$0$281$14726298@news.sunsite.dk> <8bdb4b49-8068-4b03-a90a-013d69c439e8@f5g2000vby.googlegroups.com>

Show all headers | View raw


Alex McDonald <blog@rivadpm.com> writes:
>I still prefer the full word; :METHOD in leading colon notation
>and ;METHOD. PUBLIC, PRIVATE, INTERFACE and so on get the full length
>treatment, so why not METHOD?

Method definitions are more frequent than PUBLIC, PRIVATE, or
INTERFACE.  Writing a METHOD twice for each definition is cumbersome
and discourages factoring.  There's a reason why Forth uses ": ... ;"
and not ":definition ... ;definition".

I now lean towards using ":: ... ;;", which also satisfies Doug
Hoffman's requirement.  I thank all responders for their input.

Concerning the question of why I don't just use ";" for the end: ";;"
does more, both when compiling the word and at run-time.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2011: http://www.euroforth.org/ef11/

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


Thread

Syntax and backwards compatibility objects.fs revision anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-12 13:08 +0000
  Re: Syntax and backwards compatibility objects.fs revision Alex McDonald <blog@rivadpm.com> - 2012-04-12 07:44 -0700
  Re: Syntax and backwards compatibility objects.fs revision Doug Hoffman <glidedog@gmail.com> - 2012-04-12 11:48 -0400
    Re: Syntax and backwards compatibility objects.fs revision Alex McDonald <blog@rivadpm.com> - 2012-04-12 10:05 -0700
      Re: Syntax and backwards compatibility objects.fs revision Doug Hoffman <glidedog@gmail.com> - 2012-04-12 14:00 -0400
      Re: Syntax and backwards compatibility objects.fs revision anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-13 12:48 +0000
        Re: Syntax and backwards compatibility objects.fs revision Alex McDonald <blog@rivadpm.com> - 2012-04-13 06:57 -0700
        Re: Syntax and backwards compatibility objects.fs revision hwfwguy@gmail.com - 2012-04-13 09:32 -0700
    Re: Syntax and backwards compatibility objects.fs revision BruceMcF <agila61@netscape.net> - 2012-04-12 11:10 -0700

csiph-web