PDA

View Full Version : bug?


lipe
11-11-2004, 03:15 AM
Hello again.

If I do like this:
x="$once{ menu.width } + 20"
I get this:
test_tree.lzx:58:3: The value of the 'x' attribute uses a deprecated syntax. Use x="${$once{ menu.width } + 20}" instead.

But if I do like the compiler suggests:
x="${ $once{ menu.width } + 20 }"
I get this:
test_tree.lzx:58:17: Syntax error: the token "}" was not expected at this position.

I´m using the last stable version. Am I missing something?

antun
11-11-2004, 09:02 AM
You want:


x="$once{ menu.width + 20 }"


-Antun

lipe
11-11-2004, 06:54 PM
Thanks Antum. I have to read the documentation more carefully.

But it would be nice to correct the compiler information.

Thanks a lot!

antun
11-12-2004, 08:23 AM
I've filed a bug on the bad warning.

-Antun