[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Commenting out lines
From: |
Geraint Paul Bevan |
Subject: |
Re: Commenting out lines |
Date: |
Mon, 02 Aug 2004 20:23:15 +0100 |
User-agent: |
Mozilla Thunderbird 0.5 (X11/20040306) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vic Norton wrote:
| Is there anything in Octave comparable to the
|
| =skip
| lines of code to be skipped
| =cut
|
| construct of Perl?
|
| If there is I've missed it. I find it a real pain to have to put a "#"
| in front of each of a bunch of lines whenever I want to test an
| alternative method.
|
| Regards,
|
| Vic
|
A simple method is to enclose the code within an if statement:
if 0
~ lines of code
endif
- --
Geraint Bevan
http://homepage.ntlworld.com/geraint.bevan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iEYEARECAAYFAkEOlKMACgkQcXV3N50QmNPtxwCfY1+suBvEebf5QIOFruy3r/el
VVsAnR3HlxzhAp4xxA+ehFXmoMelKPSY
=yN8T
-----END PGP SIGNATURE-----
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- Commenting out lines, Vic Norton, 2004/08/02
- Re: Commenting out lines,
Geraint Paul Bevan <=
- Re: Commenting out lines, Przemek Klosowski, 2004/08/03
- Re: Commenting out lines, Christoph Dalitz, 2004/08/03
- Re: Commenting out lines, Jonathan Stickel, 2004/08/03
- Re: Commenting out lines, Geraint Paul Bevan, 2004/08/03
- Re: Commenting out lines, Jonathan Stickel, 2004/08/03
- Re: Commenting out lines, Vic Norton, 2004/08/03
- Re: Commenting out lines, Christoph Dalitz, 2004/08/04