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: Third draft...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 17 Topic 129 of 159
Post > Topic >>

Re: Third draft of Structures

by "Charles Melice" <cm@[EMAIL PROTECTED] > Oct 4, 2006 at 02:23 PM

"jacko" <jackokring@[EMAIL PROTECTED]
> a écrit dans le message de news: 
1159914212.993010.116420@[EMAIL PROTECTED]
> hi
>
> 5 ENUM ref x y z col row
>
> 0 ref ARRAY struct
>
>
> : user x struct @[EMAIL PROTECTED]
 ;
>
> : eg struct dup x swap  @[EMAIL PROTECTED]
 dup * swap y swap @[EMAIL PROTECTED]
 dup * + sqr ;
>
> thats my 2p.
>
> cheers
>

I see you are using an array to have a structure of
cells sized members.

Notice the next texts descriptions related to structures:

[...A structure contains an ordered group of data objects. Unlike
the elements of an array, the data objects within a structure
can have varied data types. Each data object in a structure
is a member or field.]

[...All references to a struct member outside its accessibility
scope shall result in an error at compile time.]

I think members of a structure have to be accessed using a
special scope operator.

Perhaps the words RECORD: ... OFFSET: ... END-RECORD are
betters names for the ANS proposal.

--
Charles
 




 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 Thu Jul 24 16:45:01 CDT 2008.