Re: Re: Mathematica commenting of code using
- To: mathgroup at smc.vnet.net
- Subject: [mg84963] Re: [mg84926] Re: [mg84914] Mathematica commenting of code using
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Mon, 21 Jan 2008 04:13:08 -0500 (EST)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <200801191101.GAA18691@smc.vnet.net> <47921293.1000102@math.umass.edu> <200801200831.DAA02594@smc.vnet.net>
- Reply-to: murray at math.umass.edu
Then so much the worse for the lax rules enforced by those other languages! Nasser Abbasi wrote: > ----- Original Message ----- > From: "Murray Eisenberg" <murray at math.umass.edu> > > >> Without a second right-end *) to match, I think this should obviously be >> treated as a syntax error. >> > > I think Mathematica is free to have its language rules of course, I was just > commenting because that is NOT how other languages normally treats comments > that has an opening and closing tokens. > > Once a comment is started, everything in from of it is ignored until the > comment is closed. > > This works in C: /* comment /* still inside a commant */ > This work in C++: // comment // still inside a commant // > This does NOT work in Mathematica (* comment (* still inside a comment > *) -- 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
- References:
- Mathematica commenting of code using (* *) can't be nested well.
- From: "Nasser Abbasi" <nma@12000.org>
- Re: Mathematica commenting of code using (* *) can't be nested well.
- From: "Nasser Abbasi" <nma@12000.org>
- Mathematica commenting of code using (* *) can't be nested well.