Since the issue of quoting Delphi sourcecode creeps up every time I want to make that issue more clear.
I posted a legally correct answer on the bugtracker but everybody should take note.
Here's my quote:
"Bart,
Delphi sourcecode is copyrighted, but may be governed by GPL, if that is the case, it is perfectly legal to show a codesnippet from Delphi. It depends on where the Delphi version is sourced. E.G. Kylix sourcecode is mostly GPL. D7 is GPL'd when sourced from free magazine versions as per their use instructions and the flags with which the DCU's are compiled. See Delphi 7 or Kylix system.pas.
Delphi has a define for that to test: {$IFDEF GPL} and a const gpl boolean.
Some code is impossible to use under GPL, but this particular code is not.
Not many people know that, but now you do.
Note there is no LGPL with linker exception option in Delphi sourcecode, hence unless your program is full GPL you can not use Delphi sourcecode with Lazarus or FPC without releasing all sources to your program under GPL. The rtl sourcecode and some but not all VCL sourcecode for these versions is dual licensed, though: commercial and GPL. Both are incompatible with FPC and Lazarus sourcecode LGPL. For the purpose of documentation and demonstration this code is legal to publish under GPL.
We just can't use it in our sources unless it is obvious implementation or derived code (see the MS license for use of their headers).
It is only legal to use GPL'd Delphi or Kylix sourcecode in the compiler itself, since that is GPL.
"
You can check that for yourselves.
But, a big but, make sure that IF you quote Delphi sources it is indeed within the GPL defines. All of the RTL sources are (at least upto 2007, but when unchanged..), some of the VCL is too.
Inprise had a difficult time..... And did not hire enough lawyers at that point. And did not fully understand GPL.
Don't quote XE+ sources.... They hate that, because they forgot about the GPL. Once done it's done.