Alexander Klenin wrote:
On Thu, Mar 28, 2013 at 9:04 PM, Graeme Geldenhuys
<[email protected]> wrote:
On 2013-03-28 11:52, Xiangrong Fang wrote:
That should work :)
That does not work.

Indeed, I just tested it (which I didn't before).

This problem is relatively frequent.
See
http://bugs.freepascal.org/view.php?id=15560
http://bugs.freepascal.org/view.php?id=21848
for a solution (which, unfortunately, is still not applied).

>> AConst = {$INCLUDESTRINGFILE filename.inc};

As an alternative hack which avoids the creation of a new directive, would it be possible to do

AStringConst = {$INCLUDE 'filename.inc'};

or for that matter

AnIntegerConst = {$INCLUDE $filename.inc};

i.e. the directive specifies quoting style or radix prefix?

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to