Re: comment removal.
- Posted by Hayden McKay <hmck1 at dodo.com.au> Mar 21, 2007
- 599 views
CChris wrote: > > Chris Burch wrote: > > > > Hi > > > > Why not put this in euwiki - too small for a submission, but useful enough > > to > > be kept for posterity and reference. > > > > Chris > > > > > > =================================================================================== > > There is a train of thought that a generalist knows a little about a lot of > > things, > > and that a specialist knows a lot about very little. > > If you took this to the extreme, you could become so specialised so as to > > know > > everything there was to know about nothing. > > > > =================================================================================== > > > > <a > > href="http://euallegro.wikispaces.com">http://euallegro.wikispaces.com</a> > > <a > > href="http://members.aol.com/chriscrylex/euphoria.htm">http://members.aol.com/chriscrylex/euphoria.htm</a> > > <a href="http://uboard.proboards32.com/">http://uboard.proboards32.com/</a> > > <a > > href="http://members.aol.com/chriscrylex/EUSQLite/eusql.html">http://members.aol.com/chriscrylex/EUSQLite/eusql.html</a> > > Problem with that piece of code is that, if a quoted string contains the > "--" substring, the remainder of the line will be deleted. Could be a > nuisance. > > CChris Origionaly I had to remove "//" comments from hundreds and thousands of lines of sourcecode, and that piece of code did the trick. I thought about adding command line and prompt support and checking for various other cases but there was no need to do that at the time. The code snippet did it's job and then got filed away, and probably never to be used again by me. Anyone is welcome to modify or complete the code for there needs. If you do, I ask that you please share it with others.