comments in LOGO

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

comments in LOGO

Postby Lancer » Mon May 30, 2005 7:10 pm

...specifically, the turtle language LOGO: Berkeley Logo 5.4

I'm teaching some kids to program in this. They are making programs to draw houses etc and some of their programs are gettign rather long, about to lose track of what lines do what...

...so comments are very much needed but how? I didn't think this would be hard to figure out but I have tried using REM, #, !, ', // and a few others...most just return error messaages of "I don't know how to..."
Lancer
LXF regular
 
Posts: 232
Joined: Thu Apr 07, 2005 11:59 am

RE: comments in LOGO

Postby TonyLB » Mon May 30, 2005 7:15 pm

A quick Google came up with this
http://docs.kde.org/en/3.4/kdeedu/kturt ... rence.html

Tony
In the beginning was nothing, which exploded! (Lords and Ladies, Terry Pratchett)
TonyLB
LXF regular
 
Posts: 112
Joined: Tue Apr 12, 2005 7:08 pm
Location: Wirral, UK

RE: comments in LOGO

Postby Lancer » Tue May 31, 2005 3:40 am

I already did a quick google. Always do before asking here. Your page says to use hash character # for comments like this.

# This should be a comment but it does not work.

Unfortunately, Berkeley Logo must use some other syntax. This morning a search including "Berkeley" gave me a page which said to use an apostrophie. But unfortunately...

' This does not work either.

Howevre, in class we got online and found another page which said to use a semicolon...

; Whad'y'know - it works! :)

Never knew a language like this would have so many variances depending on the version.
Lancer
LXF regular
 
Posts: 232
Joined: Thu Apr 07, 2005 11:59 am


Return to Programming

Who is online

Users browsing this forum: Google [Bot] and 1 guest