[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Block comments inside block comments
From: |
Jaroslav Hajek |
Subject: |
Re: Block comments inside block comments |
Date: |
Tue, 16 Mar 2010 13:30:53 +0100 |
2010/3/16 Carnë Draug <address@hidden>:
> Hi
>
> I just realized that when inside a block comment, octave still notices
> the start of another block comment. If this happens, then it's needed
> to close it again. Not sure if I'm clear so here's an example what I
> mean
>
> printf ("Not comment 1\n");
> #{
> printf ("Comment 1\n");
> #{
> printf ("Comment 2\n");
> #}
> printf ("I'd have guessed NOT a comment but it is a comment and gives
> warning of unclosed block comment\n");
>
> Is this a feature or a bug? My idea on how comments work is that
> everything is ignored until the end of the comment (end of the line,
> in one line comments, or end of block character) but I may be wrong.
>
> Carnë Draug
>
IIRC this is a known bug. Nevertheless, unbalanced block comment
parentheses indicate a potential trouble (escaped block comment), so
even if this is fixed, I'd prefer the warning to stay there.
--
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
- Block comments inside block comments, Carnë Draug, 2010/03/16
- Re: Block comments inside block comments, David Grundberg, 2010/03/16
- Re: Block comments inside block comments,
Jaroslav Hajek <=
- Re: Block comments inside block comments, John W. Eaton, 2010/03/16
- Re: Block comments inside block comments, Jaroslav Hajek, 2010/03/16
- Re: Block comments inside block comments, Carnë Draug, 2010/03/16
- Re: Block comments inside block comments, John W. Eaton, 2010/03/16
- Re: Block comments inside block comments, Carnë Draug, 2010/03/23
- Re: Block comments inside block comments, Søren Hauberg, 2010/03/24
- Re: Block comments inside block comments, Carnë Draug, 2010/03/24
- Re: Block comments inside block comments, Søren Hauberg, 2010/03/24
- Re: Block comments inside block comments, John W. Eaton, 2010/03/24
- Re: Block comments inside block comments, John W. Eaton, 2010/03/24