[fpc-devel] Porting FPC to IBM zArch
Sven Barth
pascaldragon at googlemail.com
Wed Jul 24 11:39:44 CEST 2013
Am 24.07.2013 10:02, schrieb Jonas Maebe:
>
>> Comments of different types can be nested;
>> comments of the same type can be nested, if the compiler option N+ is set.
> FPC supports nesting of {} comments. (* *) comments do not nest, and { } comments appearing inside (* *) comments are ignored (they don't start a new nesting level). Supporting four nestable comment would require quite a few changes and I'm not sure whether this would be nice. Are these also extensions that you added yourself?
You're sure regarding (* *) comments?
=== code begin ===
program test;
(*
comment 1
(*
comment 2
(*
comment 3
*)
*)
*)
begin
end.
=== code end ===
=== compile output begin ===
PS P:\tests\oneshots> fpc -Mobjfpc commenttest2.pas
Free Pascal Compiler version 2.6.0 [2011/12/25] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling commenttest2.pas
commenttest2.pas(5,3) Warning: Comment level 2 found
commenttest2.pas(7,3) Warning: Comment level 3 found
Linking commenttest2.exe
14 lines compiled, 0.1 sec , 25920 bytes code, 1644 bytes data
2 warning(s) issued
=== compile output end ===
Regards,
Sven
More information about the fpc-devel
mailing list