[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LOGO-L> Re:LOGO-L:re:fractals



Yehuda wrote:

Hi Mike, 
Both versions gave me the same error message. Am I missing something? 

Here's the code I tried: ....

Yehuda

I pasted to MSWLogo, removed np and rp from your code, ran perfectly.

Problem solved I think. I notice that you have changed 
the definition of np to:

to np 
make "coord.stack [] 
make "penf 0 
localmake "coord.posn (list  xcor ycor heading) 
ifelse pendownp [make "coord.posn fput 1 :coord.posn]~ 
                [make "coord.posn fput 0 :coord.posn] 
push "coord.stack :coord.posn 
end

coord.stack has to be initialised when MSWLogo is loaded otherwise it won't 
operate as a stack.

make "coord.stack [] has to be run outside of np

Regards Mike


---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home