MathGroup Archive 2008

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84931] Re: [mg84914] Mathematica commenting of code using (* *) can't
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sun, 20 Jan 2008 03:34:21 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200801191101.GAA18691@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

Without a second right-end *) to match, I think this should obviously be 
treated as a syntax error.

Nasser Abbasi wrote:
> Mathematica 6.0.1
> 
> I do not understand why the following can't be taken as a valid comment
> 
> (*  comment here   (*  more comments  *)
> 
> 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
> 
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Color a Bounding Box Side
  • Next by Date: Re: Strange parsing error.
  • Previous by thread: Mathematica commenting of code using (* *) can't be nested well.
  • Next by thread: Re: Mathematica commenting of code using (* *) can't be nested well.