Search the web
Sign In
New User? Sign Up
forth200x
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
CfV: Structures   Message List  
Reply | Forward Message #171 of 425 |
Re: [forth200x] Current standings: Structures

Alex McDonald wrote:
[Ballots]

Thanks.

> Notes:
>
> Parts of Win32Forth use an alternative "based" structure.
>
>
> : FLD ( basevar offset len -<name>- -- basevar offset+len ) \
> definer for fields
> create
> 3dup + 2>R \ n1 n2 n3 r: n1 n2+n3
> drop \ n1 n2 r: n1 n2+n3
> , , 2R> \ build n2 n1
> DOES> ( -- baseaddr )
> dup @ \ fetch n2
> swap cell+ @ @ + ; \ fetch n1 value, add
>
> : FLDBASE ( -<name>- ) \ set field base name (starts field)
> CREATE here 0 , 0 ; \ base of record
>
> Example:
>
> FLDBASE BASE-IID
> 4 FLD IID-RVA-ILT \ import lookup table
> 4 FLD IID-TIMEDATE \ time date of binding
> 4 FLD IID-FORWARDER \ forwarder index
> 4 FLD IID-RVA-NAME \ RVA to name
> 4 FLD IID-RVA-IAT \ import address table
> CONSTANT LEN-IID DROP
>
> Usage:
>
> <value> BASE-IID ! \ set base of IID
> <value> IID-RVA-NAME ! \ i.e. BASE-IID+12

That's a little long. I have included it, but I think it would be
better to mention such things at the RfD stage, and let the proponent
condense this into the comments or existing practice section.

- anton



Tue Jun 26, 2007 9:04 am

anton@...
Send Email Send Email

Forward
Message #171 of 425 |
Expand Messages Author Sort by Date

This is actually a poll about how widely the proposal is implemented and how popular it is among the programmers. It is called a CfV (call-for-votes) because...
Anton Ertl
anton@...
Send Email
Jun 8, 2007
9:39 am

Systems [ ] conforms to ANS Forth. Gforth bigForth Gerry Jackson's system [ ] already implements the proposal in full since release [ ]: [ ] implements the...
Anton Ertl
anton@...
Send Email
Jun 25, 2007
1:59 pm

Anton Ertl wrote: <snipped> Proposal RfD: Structures - Version 4 6 February 2007, Stephen Pelc Ballot for systems If you maintain several systems, please...
Alex McDonald
alextangent
Offline Send Email
Jun 25, 2007
10:03 pm

Alex McDonald wrote: [Ballots] Thanks. ... That's a little long. I have included it, but I think it would be better to mention such things at the RfD stage,...
Anton Ertl
anton@...
Send Email
Jun 26, 2007
9:04 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help