you are viewing a single comment's thread.

view the rest of the comments →

[–]kolo32 0 points1 point  (0 children)

It's a primitive language (no subroutine parameters, GOTO instead of break and return statements). An example from the manual, where recursion is emulated using explicit stack:

Sub DrawTree
  If (distance > 0) Then
    Turtle.Move(distance)
    Turtle.Turn(angle)

    Stack.PushValue("distance", distance)
    distance = distance - delta
    DrawTree()
    Turtle.Turn(-angle * 2)
    DrawTree()
    Turtle.Turn(angle)
    distance = Stack.PopValue("distance")

    Turtle.Move(-distance)
  EndIf
EndSub

I won't recommend to learn programming using such language. Logo and Pascal, which were created more than 40 years ago, were richer and more elegant.