[fpc-devel] Incomplete docs on operator precedence / Question about actual precedence
Dmitry Boyarintsev
skalogryz.lists at gmail.com
Mon Feb 3 17:37:33 CET 2014
On Mon, Feb 3, 2014 at 11:02 AM, Martin Frb <lazarus at mfriebe.de> wrote:
> Parsed yes, but if it comes to evaluation, then you get {$T-} (@a)^
> "cant dereference an untyped pointer" or similar
>
> @a^ always works. All I was asking is if the documentation should state it
> more clearly that ^ is (As part of the identifier) done before ^
>
(debugger) evaluation is different from the compilation.
Compiled units doesn't contain the information about compiler directives
used (..or are they in .ppu?)
If one unit is compiled with $T+ and another with $T- would you make the
evaluator unit specific? I doubt that.
Despite of $T there are many syntax difference for each $mode using in FPC.
And each unit might be using it's own {$mode}.
I'm assuming you'll need just assume some set of the directives for your
evaluator (i.e. it's always in $mode delphi, and always $T+)
thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140203/993ceed5/attachment.html>
More information about the fpc-devel
mailing list