MathGroup Archive 2008

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

Search the Archive

Re: Mathematica commenting of code using (* *) can't be nested

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84941] Re: Mathematica commenting of code using (* *) can't be nested
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Sun, 20 Jan 2008 03:39:30 -0500 (EST)
  • References: <fmsljm$knj$1@smc.vnet.net> <4791F3F5.9040200@gmail.com>

Szabolcs Horvát wrote:
> I am not sure whether comment nesting has worked correctly in older 
> versions.  I saw a note about this in the Mathematica syntax 
> highlighting file included with a certain text editor that says that 
> "the frontend won't always like [nested comments]".
> 

It seems that this is documented for both version 5 and 6: 
tutorial/DocumentationConstructs

 > You can add such text at any point in your code simply by enclosing
 > it in matching (* and *). Notice that in Mathematica, "comments"
 > enclosed in (* and *) can be nested in any way.

So it should work in all situations, otherwise there is a bug in the fe.

-- 
Szabolcs


  • Prev by Date: Re: Mathematica commenting of code using (* *) can't be nested well.
  • Next by Date: Re: Tracing a Cycloid
  • Previous by thread: Re: Mathematica commenting of code using (* *) can't be nested well.
  • Next by thread: Re: Mathematica commenting of code using (* *) can't be nested