Re: Comments are KILLING me
- To: mathgroup at smc.vnet.net
- Subject: [mg37738] Re: Comments are KILLING me
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Sun, 10 Nov 2002 05:38:47 -0500 (EST)
- References: <aqfp6g$7d3$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Mike, I set your code (in 2D form)and put it into a .m file (1) by copying and p[asting into a the file (2) by making the containing cell initializing and using Edit>Copy Selection As>Package Format. I then loaded the file using <<. In both cases test evaluated with no problem. Maybe I am missing something/ I am using Mathematica m.2 -- Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565 "Nafod40" <may106 at psu.edu> wrote in message news:aqfp6g$7d3$1 at smc.vnet.net... > I can write a simple package with a single line of code written in > StandardForm, so the 1/10 term is written 1 on top of 10... > > test := Module[(x = 1/10, (* now is the time *) y = 2}, x] > > Using StandardForm and 2D mathematical typesetting, it works fine in > the notebook. Save it as a package and load it in, and I get a slew of > error messages... > > \!\(InputForm\`Syntax::"sntxb" : > "Expression cannot begin with etc.... > > This is KILLING me! If the Front End has a bug in it, then make > comments illegal. If comments are OK, then fix the bug! I (am trying > to) use text, mathematical typesetting, and comments to provide a best > product to my customer. While text is great, there is certainly a time > and a place for comments within the code. > > Does anyone have some sort of add-in such that the autopackage > function converts all cells to input form first? Or reconverts to > StandardForm? I don't need to carry any of the comments or formatting > into the *.m file, and prefer that none of it did. Wolfram, do you > guys have anything like this? > > Why hasn't this been fixed? > > Mike >
- Follow-Ups:
- Re: Re: Comments are KILLING me
- From: Selwyn Hollis <selwynh@earthlink.net>
- Re: Re: Comments are KILLING me