Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth Mac > Re: Naming of S...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 17 Topic 129 of 159
Post > Topic >>

Re: Naming of Standard words

by Elizabeth D Rather <eratherXXX@[EMAIL PROTECTED] > Oct 5, 2006 at 12:19 PM

slava@[EMAIL PROTECTED]
 wrote:
> ward mcfarland wrote:
>> Thus I would prefer
>> RECORD: .... ;RECORD
>> to
>> RECORD  .... END-RECORD (or was it ENDRECORD, END_RECORD, RECORD-END)
>>
>> and
>>
>> CODE: ... ;CODE
>> to
>> CODE ... END-CODE
> 
> In Factor, the ; word goes through a layer of indirection, so we have:
> 
> : ... ;  colon definitions
> M: .... ; methods
> C: .... ; constructors
> 
> etc. I find this is more readable than ;M ;C and so on.

To me, the : and ; denote a particular family of definitions, that is, 
those compiled by the Forth : compiler.  Words that are built other ways 
shouldn't use that notation, it causes confusion.  Without knowing a lot 
about Factor, I'd guess that M: ... ; etc is appropriate, but CODE: ... 
;CODE is not.

Cheers,
Elizabeth

-- 
==================================================
Elizabeth D. Rather   (US & Canada)   800-55-FORTH
FORTH Inc.                         +1 310-491-3356
5155 W. Rosecrans Ave. #1018  Fax: +1 310-978-9454
Hawthorne, CA 90250
http://www.forth.com

"Forth-based products and Services for real-time
applications since 1973."
==================================================
 




 17 Posts in Topic:
RfD: Third draft of Structures
stephenXXX@[EMAIL PROTECT  2006-08-30 10:03:23 
Re: RfD: Third draft of Structures
anton@[EMAIL PROTECTED]   2006-09-02 16:25:43 
Re: Third draft of Structures
"Charles Melice"  2006-10-03 16:25:26 
Re: Third draft of Structures
"jacko" <jac  2006-10-03 15:23:33 
Re: Third draft of Structures
"Charles Melice"  2006-10-04 14:23:36 
Naming of Standard words
"Ed" <nospam  2006-10-05 12:34:42 
Re: Naming of Standard words
"Charles Melice"  2006-10-05 11:29:08 
Re: Third draft of Structures
"jacko" <jac  2006-10-03 15:32:49 
Re: Naming of Standard words
"slava@[EMAIL PROTEC  2006-10-04 20:32:28 
Re: Naming of Standard words
ward@[EMAIL PROTECTED] (  2006-10-05 07:01:33 
Re: Naming of Standard words
"J Thomas" <  2006-10-05 05:13:43 
Re: Naming of Standard words
"slava@[EMAIL PROTEC  2006-10-05 10:45:16 
Re: Naming of Standard words
Elizabeth D Rather <er  2006-10-05 12:19:50 
Re: Third draft of Structures
"Ian Osgood" &l  2006-10-20 07:19:16 
Re: Third draft of Structures
Bernd Paysan <bernd.pa  2006-10-20 18:18:21 
Re: Third draft of Structures
"Ed" <nospam  2006-10-23 15:10:40 
Re: Third draft of Structures
"Tim Trussell"   2006-10-23 08:19:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 16:44:02 CDT 2008.