[fpc-devel] Incomplete docs on operator precedence / Question about actual precedence

Dmitry Boyarintsev skalogryz.lists at gmail.com
Mon Feb 3 16:38:10 CET 2014


On Mon, Feb 3, 2014 at 10:25 AM, Martin Frb <lazarus at mfriebe.de> wrote:

> It does not state if or if not it is an operator. And also give no
> indication on its precedence, or if it is applied before or after operators.
>
> This is not so much about he -a^ (which is a (very) constructed case), but
> about   @a^ which is possible (not doing much so)
>
> So if {$T-}
> a : pinteger;
> @a^ gives an untyped pointer (same as "pointer(a)" ? / but shorter)
> But only because it is @(a^) and not (@a)^ . The second would only compile
> wit {$T+}
>

Both still both expressions are parsed the same (not if $T is enabled or
not).
If you treat ^ as a part of identified, you'll be able to parse the
expression.

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20140203/09dca99c/attachment.html>


More information about the fpc-devel mailing list