programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: SWOOP search order problem

From: Elliott Chapin <echapin_at_sympatico.ca>
Date: Sun, 20 Oct 2002 13:36:37 -0400

Thanks, Mike! It works.

At 10:11 AM 10/20/02 -0700, you wrote:

>When referencing an object you need to specify a method otherwise the
>search order (and probably more) is mangled. 2V-COPY requires the
>*address* of two objects so the method is ADDR.
>
>Try the following (untested)
>
>CLASS 6VL \ last two are repeats for sake of tetrahedron as strip
>
> 6 2V BUILDS[] V[]
>
> : RND 4 0 DO I V[] RND LOOP
> 4 V[] ADDR 0 V[] ADDR 2V-COPY \ ??
> 5 V[] ADDR 1 V[] ADDR 2V-COPY \ ??
> ;
>
>END-CLASS
>
>
>Mike
>
>-----Original Message-----
>From: sftalk-bounce_at_forth.com [mailto:sftalk-bounce_at_forth.com]On
>Behalf
>Of Elliott Chapin
>Sent: Sunday, October 20, 2002 9:53 AM
>To: sftalk_at_forth.com
>Subject: [sftalk] SWOOP search order problem
>
>
>
>The code below is based on some OpenGL code that works, and is meant
>as
>steps toward generalization - building arbitrary vertex sequences, and
>might end up producing linked lists after I get this version to work.
>What's below compiles and executes properly except for the lines noted
>near
>the end. What is particularly surprising is that the line before works
>just
>fine. I have looked at possible usage of words like 'THIS, 'SELF,
>MEMBERS,
>. . . but haven't found a solution yet. The error message: V[] ?
>
>Comments?
>Thanks ...
>
>----------------------------------------------------------------------
>sftalk_at_forth.com The SwiftForth programming discussion email list
>To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com
>For help with listar commands, send subject "help" to listar_at_forth.com
>Archives are located at http://www.forth.com/sftalk -- check them out!
>Search the archives! Visit http://www.forth.com/search for details.

-------------------------------------------------------------------------
http://www3.sympatico.ca/echapin
http://www.monkeys.com/spammers-are-leeches/

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe sftalk" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/sftalk -- check them out!
Search the archives! Visit http://www.forth.com/search for details.
Received on Sun Oct 20 2002 - 10:37:11 PDT

This archive was generated by hypermail 2.2.0 : Wed Jan 07 2009 - 03:04:03 PST