[Qgis-developer] QgsExpression: Comment support and unary minus

Martin Dobias wonder.sk at gmail.com
Thu Nov 27 01:06:01 PST 2014


Hi Matthias

On Thu, Nov 27, 2014 at 3:14 PM, Matthias Kuhn <matthias.kuhn at gmx.ch> wrote:
> Hi all,
>
> I am working on introducing comment support for QgsExpressions (See
> below for examples).

Cool - looking forward to that.


>  * Is that a typo and it should actually be `-1`?
>  * Is there a reason, that `--` as initial delimiter for line comments
> is not good?

The test is just a check that double unary minus is parsed and
evaluated correctly. I guess the test should be changed to read -(-1)

So from me -(-1) to use '--' for line comments ;-)

Cheers
Martin


More information about the Qgis-developer mailing list