[MWForum]translate procedures

Daniel Ajoy mwforum@lists.mathcats.com
Tue, 29 Oct 2002 12:16:18 -0500


On 29 Oct 2002 at 15:26, Ulisse Quadri wrote:

> to sfondo
>     bg
> end
> 
> because:
> 
> show bg  =  "0" (this is correct)
> show sfondo  = "I don't know what to do with 0 in sfondo" (this is error)
> 

bg outputs 0

and in:

to sfondo
 bg
end

"sfondo" doesn't know what to do with 0.

it looks like this:

to sfondo
 0
end

that is why the error message says:

"I don't know what to do with 0 in sfondo"


if you want sfondo to work like bg you need to make
sfondo _output_ the value returned by "bg":

to sfondo
 output bg
end


Daniel
OpenWorld Learning