Page 1 of 1

Case with a negative integer value not compiling

Posted: Wed Dec 25, 2019 2:24 pm
by xeon
Hi all! Loooooong time inactive ... good to be back here :)

I dunno if I don't remember well or is just a bug. I'm trying to compile a script with a case like this

Code: Select all

case (variable)
       0: <some code>
       
       1: <some code>
      -1: <some code>
       2: <some code>
endcase
Well, ecompile is complaining about the line with the -1 as comparison value. Or just any negative value, for the matter.
Is it a bug in ecompile?

Re: Case with a negative integer value not compiling

Posted: Wed Dec 25, 2019 5:13 pm
by Yukiko
I can confirm the issue. I even tried enclosing the -1 in parenthesis and still received the error.

Re: Case with a negative integer value not compiling

Posted: Thu Dec 26, 2019 2:55 pm
by xeon
Ciao Yukiko! How long :)

Thanks for confirming! Was wondering if I was missing out something obvious ...

Re: Case with a negative integer value not compiling

Posted: Thu Dec 26, 2019 3:51 pm
by Yukiko
No. You were not wrong. I told the developers about it.? Glad to see you are still working with POL. :)