[Gambas-user] Ambiguous expression?

2010-03-10 Thread Jussi Lahtinen
Hi! This; 1\2*3 Yields this; Ambiguous expression. Please use braces But if I write; 1/2*3 Then no problem. Why? Is this planned behaviour? Gambas 3 revision 2664 (old!) Ubuntu 9.10 64bit Jussi -- Download Intel#174;

Re: [Gambas-user] Ambiguous expression?

2010-03-10 Thread Alessandro Rinaldi
I really think yes. Standard symbol for fractions is /, why should you use \? -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune

Re: [Gambas-user] Ambiguous expression?

2010-03-10 Thread Jussi Lahtinen
1/2 = 0.5 1\2 = 0 3\2 = 1 \ operator gives only integer part. Jussi On Wed, Mar 10, 2010 at 19:48, Alessandro Rinaldi alerina...@linuxzogno.org wrote: I really think yes. Standard symbol for fractions is /, why should you use \?

Re: [Gambas-user] Ambiguous expression?

2010-03-10 Thread Alessandro Rinaldi
Wow, interesting! Didn't know it :) Thanks! So, I really don't know what's the problem, have you tried using brackets? -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling,

Re: [Gambas-user] Ambiguous expression?

2010-03-10 Thread Doriano Blengino
Alessandro Rinaldi ha scritto: I really think yes. Standard symbol for fractions is /, why should you use \? Backslash is integer division, and should yeld an integer result. Slash is float division, and yelds a float number (this is Basic syntax; other languages use different methods).

Re: [Gambas-user] Ambiguous expression?

2010-03-10 Thread Benoît Minisini
Alessandro Rinaldi ha scritto: I really think yes. Standard symbol for fractions is /, why should you use \? Backslash is integer division, and should yeld an integer result. Slash is float division, and yelds a float number (this is Basic syntax; other languages use different methods).

Re: [Gambas-user] Ambiguous expression?

2010-03-10 Thread Doriano Blengino
Benoît Minisini ha scritto: Alessandro Rinaldi ha scritto: I really think yes. Standard symbol for fractions is /, why should you use \? Backslash is integer division, and should yeld an integer result. Slash is float division, and yelds a float number (this is Basic syntax;

Re: [Gambas-user] Ambiguous expression?

2010-03-10 Thread Les Hardy
Benoît Minisini wrote: Alessandro Rinaldi ha scritto: I really think yes. Standard symbol for fractions is /, why should you use \? Backslash is integer division, and should yeld an integer result. Slash is float division, and yelds a float number (this is Basic syntax; other

Re: [Gambas-user] Ambiguous expression?

2010-03-10 Thread Benoît Minisini
You are correct to not suppress it. The warning is correct. The actual value of the numbers is not important. The expression is ambiguous without the brackets. 5 \ (2 * 3) = 0 (5 \ 2) * 3 = 6 This is also ambiguous 5/2*3 5 / (2 * 3) = 0.8333 (5 / 2) * 3 = 7.5 This is