* priority in user-defined operators
@ 2021-02-08 15:54 Mehdi Saada
2021-02-08 16:07 ` Niklas Holsti
2021-02-08 16:21 ` AdaMagica
0 siblings, 2 replies; 3+ messages in thread
From: Mehdi Saada @ 2021-02-08 15:54 UTC (permalink / raw)
How goes precedence for user-made operators, like
((2/1)*A-B*(13/1))
but A and B being variables for whatever private types ?
Is there a way , now or planned in AI, to specify that in aspects ?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: priority in user-defined operators
2021-02-08 15:54 priority in user-defined operators Mehdi Saada
@ 2021-02-08 16:07 ` Niklas Holsti
2021-02-08 16:21 ` AdaMagica
1 sibling, 0 replies; 3+ messages in thread
From: Niklas Holsti @ 2021-02-08 16:07 UTC (permalink / raw)
On 2021-02-08 17:54, Mehdi Saada wrote:
> How goes precedence for user-made operators, like
> ((2/1)*A-B*(13/1))
> but A and B being variables for whatever private types ?
> Is there a way , now or planned in AI, to specify that in aspects ?
No, and deliberately so. The parsing of expressions with operators does
not depend on the identification of the operators as predefined or
user-defined.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: priority in user-defined operators
2021-02-08 15:54 priority in user-defined operators Mehdi Saada
2021-02-08 16:07 ` Niklas Holsti
@ 2021-02-08 16:21 ` AdaMagica
1 sibling, 0 replies; 3+ messages in thread
From: AdaMagica @ 2021-02-08 16:21 UTC (permalink / raw)
See 4.4 Expressions. The precedence rules follow from the syntax.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-02-08 16:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-08 15:54 priority in user-defined operators Mehdi Saada
2021-02-08 16:07 ` Niklas Holsti
2021-02-08 16:21 ` AdaMagica
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox