Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: Notebooks, packages, cells, and literate programming

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64229] Re: Notebooks, packages, cells, and literate programming
  • From: Peter Pein <petsie at dordos.net>
  • Date: Tue, 7 Feb 2006 03:35:58 -0500 (EST)
  • References: <ds4hr2$61t$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

David Park schrieb:
> Mark,
> 
> I think the short answer to your question is no, there is not a way of
> splitting a Module, Block or With between cells.
> 
> Still, I would like to make some comments that may be useful to you.
> 
> First on the use of (* *) comments: I believe these can be very useful in
> theory, but in practice, in Mathematica, are a little iffy. I often like to
> develop routines in a notebook, usually one in which I am working through
> some textbook, and then when I am happy with a routine, move it to a
> package. But if I copy and paste a routine with (* *) comments into a
> package notebook (package.nb with Initialization cells) I will often get
> loading errors with the package. Something happens in the copy and paste
> operation. However, if I insert the comments in the package notebook,
> without a copy and paste, then it seems to work. Also if you use
> Shift-Ctrl-N to change a cell to StandardForm (or just clean up the format),
> or Shift-Ctrl-I to change a notebook to InputForm, then all (* *) comments
> are deleted. This is certainly frustrating if one has gone to a lot of work
> to insert useful comments in the code. WRI never comments or acknowledges
> these problems and it is certainly an extreme weak point of Mathematica.
> 
...
This is really an annoyance. Dear WRI, don't touch my comments any more!

Peter


  • Prev by Date: Re: Re: Notebooks, packages, cells, and literate programming
  • Next by Date: Re: MathGL3d and Mathematica 5.3
  • Previous by thread: Re: Re: Notebooks, packages, cells, and literate programming
  • Next by thread: Re: Notebooks, packages, cells, and literate programming