Home
Project Folders
Teacher Resources
Student Resources
How Do I?
Literacy
MWForum
Site Map
Search
Our Team

MWForum Message [Date Index] [Threads] [Authors] [Attachments] [Subscribe]

[Thread Prev] [Thread Next]

To: "MicroWorlds Forum" <mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: MIA, Ask an Expert: Syntax err with recursive call
From: "Daniel Ajoy" <da.ajoy@xxxxxxxxx>
Date: Fri, 06 Jan 2012 10:19:45 -0500

from: sanjeev singh <snjvsingh123@xxxxxxxxx>
date: Fri Jan  6 03:51:23 2012
platform: Mac OS10
version: MicroWorlds Ex

Getting an error with this routine.

to spi distance
forward distance
rt 90
spi distance + 10
end

Error Msg
--------------
rt didn't report anything to distance in spi

-sanjeev

In MicroWorlds, "distance" is a command that expects one input.

when you say

forward distance
rt ...

MicroWorlds reads it as

... distance rt ...

Hence: "rt didn't report anything to distance in spi"

Besides, traditional variables, either in MicroWorlds or in UCBLogo, when used, need to be prefixed by a colon:


to spi :distance
forward :distance
rt 90
spi :distance + 10
end

the colon means: the value of the variable called distance.

Is there a document that lists the differences between the LSCI logo and say
UCBLogo.

I haven't seen such a document. But you did stumble upon one difference:

This works is MicroWorlds:

to walk
fd
100
end

But it doesn't it UCBLogo.


Daniel
OpenWorld Learning



  • Previous by thread: MIA, Ask an Expert: Syntax err with recursive call
  • Next by thread: Re: MIA, Ask an Expert: Syntax err with recursive call

  • To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.


    © copyright 2001 - 2008