MathGroup Archive 1999

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Goto[tag] has a strange behaviour

  • To: mathgroup at smc.vnet.net
  • Subject: [mg20873] Re: [mg20844] Goto[tag] has a strange behaviour
  • From: Master <mst at iopp.ccnu.edu.cn>
  • Date: Thu, 18 Nov 1999 01:09:50 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear Virgil Stokes,
	It may happen because the first code has not a ";" and computer
mistakes the commands " xx = 3 " and " Label[tag];" for one command and
reads perhaps as " xx = 3 Label[tag] "(means " xx = 3*Label[tag] "). So
the code does not work.
	Regards.
Zhang Ben-wei
the institue of Particle Physics
Wuhan, China
 __________________________________________________
On Wed, 17 Nov 1999, Virgil Stokes wrote:

> Why does the following code not work (in Mathematica 3.01)
> 
>    xx = 5;
>   If[0 == 0,xx =4;Goto[tag]];
>   xx = 3
>   Label[tag]; Print[xx];
> 
> but, the following codes does work:
> 
>   xx = 5;
>   If[0 == 0,xx =4;Goto[tag]];
>   xx = 3;
>   Label[tag]; Print[xx];
> 
> The above can be generalized somewhat; but, I do not understand why
> the " ;" is needed?
> 
> Please reply to me directly since I am unable to receive MathGroup messages.
> 
> -- Virgil
> 
> 



  • Prev by Date: Re: Q: smooth 3Dplot with big mesh
  • Next by Date: Angular format
  • Previous by thread: Goto[tag] has a strange behaviour
  • Next by thread: Nonlinear Regression Code with Only Derivatives Specified