MathGroup Archive 2008

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84933] Re: Mathematica commenting of code using (* *) can't be nested well.
  • From: danl at wolfram.com
  • Date: Sun, 20 Jan 2008 03:35:22 -0500 (EST)
  • References: <fmsljm$knj$1@smc.vnet.net>

On Jan 19, 5:06=A0am, "Nasser Abbasi" <n... at 12000.org> wrote:
> Mathematica 6.0.1
>
> I do not understand why the following can't be taken as a valid comment
>
> (* =A0comment here =A0 (* =A0more comments =A0*)
>
> It seems to me that once the first (* is seen by the parser then it should
> take everything in front of it, all the way until it sees the closing *) as
> one comment.
>
> But in the above it does not. The (* in the middle breaks this, which does
> not make too much sense to me. What do you think?
>
> Nasser


(* Of course Mathematica comments can (* be nested that is. (*He said,
parenthetically*).*) Just be sure to check (* for balance, that
is*).*)

Daniel Lichtblau
Wolfram Research



  • Prev by Date: Re: Optimization with BasicSimplex command help!!
  • Next by Date: Re: Mathematica commenting of code using (* *) can't be nested
  • Previous by thread: Re: Optimization with BasicSimplex command help!!
  • Next by thread: Re: Mathematica commenting of code using (* *) can't be nested