Hi Christian,
Thanks for the answer.
It seem that if there is a call to the doc function it doesn't short-circuit.
Your exemple work, however this one does not: 1 or doc('non_existent')
Which return [FODC0002] Resource '/home/pablo/nonex' does not exist.
With respect of your answer I believe this behaviour is a bug.
Pablo
On 05/08/15 18:05, Christian GrĂ¼n wrote:
Hi Pablo,
Should code of this type depending on the short-circuit evaluation of the and operator evaluate correctly?
Yes, it does. Here is a mini example (it would raise an error otherwise):
1 or error()
Hope this helps, Christian