Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2003-11

comment bug

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tamas Konkoly

Hi,

There is a small sample. If there is a $ after the comment // characters, I get an error from the compiler.

begin
 writeln('XXXXXXXX'); //$
end.

Is this a bug?

Tcc

Reply by email

Darek Mazur
to Tamas Konkoly
$ is begin of compilation directive like $IFDEF or $A-
directives are always in comments

Darek

Earlier message 29 lines
----- Original Message ----- From: "Tamas Konkoly" To: Sent: Monday, November 24, 2003 6:27 PM Subject: [fpc-devel]comment bug > > Hi, > > There is a small sample. If there is a $ after the comment // characters, I get an error from the compiler. > > begin > > writeln('XXXXXXXX'); //$ > > end. > > Is this a bug? > > Tcc > > > > _______________________________________________ > fpc-devel maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-devel >

Reply by email

Tamas Konkoly
to Darek Mazur

I know. But either the compiler don't make error message in this, or make but with correct text, because it is not unambiguous for me.

The error text is now:
compiler switches aren't allowed in (* ... *) styled comments

Darek Mazur wrote 26 lines
$ is begin of compilation directive like $IFDEF or $A- directives are always in comments Darek ----- Original Message ----- From: "Tamas Konkoly" To: Sent: Monday, November 24, 2003 6:27 PM Subject: [fpc-devel]comment bug > > Hi, > > There is a small sample. If there is a $ after the comment // characters, I get an error from the compiler. > > begin > > writeln('XXXXXXXX'); //$ > > end. > > Is this a bug? > > Tcc

Reply by email