Re: [Gambas-user] MOD arithetic operator

2010-11-09 Thread Doriano Blengino
user ha scritto: i am not the person that should answer but i will as i understood well as possible the concept of Gambas .. i think Gambas concept is to keep a Basic style language as possible can. So an % operator is a foreign word for a Basic language. From the other hand it would be

Re: [Gambas-user] MOD arithetic operator

2010-11-09 Thread Demosthenes Koptsis
Hi to all, and good morning. Dont worry you dont hurt me. :) I am not a C++ person not at all. Of course there is no need to turn Basic in C style. But i make a notice about DIV and MOD. The one of them has a synonmous as operator. The only thing i propose is to maintain a same thinking while

[Gambas-user] IS, IsAscii, IsBlank, IsBoolean etc

2010-11-09 Thread Demosthenes Koptsis
In Operator Evaluation Order http://gambasdoc.org/help/cat/evalorder i see that the IS keyword is an operator with Strength 11. 1) All Is.. keywords are operators ? 2) All Is.. keywords have strength 11 ? -- The Next

[Gambas-user] Print, Resolution, Units

2010-11-09 Thread Gregor Burck
Hi, when I want to print the units for draw were dots, for the gui I want to use milimeter. So I create a function public function mmToDots(mm as integer, resolution as integer) as integer return Round(mm / 25.4 * resolution) end And draw e.g. a line with

Re: [Gambas-user] MOD arithetic operator

2010-11-09 Thread user
In my opinion that is correct choice. Because if you remove DIV aka / operator there will be problem for those who used this in their programs in the past. In the other hand if you add % operator as MOD the arithmetic operators will be complete and whole in my opinion as i read the manual. A

Re: [Gambas-user] IS, IsAscii, IsBlank, IsBoolean etc

2010-11-09 Thread Benoît Minisini
In Operator Evaluation Order http://gambasdoc.org/help/cat/evalorder i see that the IS keyword is an operator with Strength 11. 1) All Is.. keywords are operators ? 2) All Is.. keywords have strength 11 ? They are not related at all. 'Is' is an operator, wherea Is() are functions.

Re: [Gambas-user] MOD arithetic operator

2010-11-09 Thread Ian Haywood
On Tue, Nov 9, 2010 at 6:40 PM, user demosthen...@gmail.com wrote: i think Gambas concept is to keep a Basic style language as possible can. So an % operator is a foreign word for a Basic language. Correct I remember MOD from the BBC Acorn's BASIC in the mid 1980s, so for me it is fairly

Re: [Gambas-user] MOD arithetic operator

2010-11-09 Thread user
In my opinion that is correct choice. Because if you remove DIV aka / operator there will be problem for those Because if you remove DIV aka \ operator there will be problem for those (sorry mistake!) who used this in their programs in the past. In the other hand if you add % operator as

[Gambas-user] string operator ==

2010-11-09 Thread Demosthenes Koptsis
Hi, i dont understand the following result. PRINT abc == ab 'true PRINT abc == abc 'false in http://gambasdoc.org/help/cat/stringop says Returns if two strings are equal. The comparison is case unsensitive. 1) why abc and ab says they are equal? 2) and abc == abc are not?

Re: [Gambas-user] MOD arithetic operator

2010-11-09 Thread Benoît Minisini
Hi to all, and good morning. Dont worry you dont hurt me. :) I am not a C++ person not at all. Of course there is no need to turn Basic in C style. But i make a notice about DIV and MOD. The one of them has a synonmous as operator. The only thing i propose is to maintain a same

Re: [Gambas-user] Print, Resolution, Units

2010-11-09 Thread Fabien Bodard
2010/11/9 Gregor Burck gre...@aeppelbroe.de: Hi, when I want to print the units for draw were dots, for the gui I want to use milimeter. So I create a function public function mmToDots(mm as integer, resolution as integer) as integer  return Round(mm / 25.4 * resolution) end And draw

Re: [Gambas-user] Print, Resolution, Units

2010-11-09 Thread Benoît Minisini
2010/11/9 Gregor Burck gre...@aeppelbroe.de: Hi, when I want to print the units for draw were dots, for the gui I want to use milimeter. So I create a function public function mmToDots(mm as integer, resolution as integer) as integer return Round(mm / 25.4 * resolution) end

Re: [Gambas-user] Print, Resolution, Units

2010-11-09 Thread Doriano Blengino
Fabien Bodard ha scritto: 2010/11/9 Gregor Burck gre...@aeppelbroe.de: Hi, when I want to print the units for draw were dots, for the gui I want to use milimeter. So I create a function public function mmToDots(mm as integer, resolution as integer) as integer return Round(mm / 25.4

Re: [Gambas-user] Print, Resolution, Units

2010-11-09 Thread Fabien Bodard
2010/11/9 Doriano Blengino doriano.bleng...@fastwebnet.it: Fabien Bodard ha scritto: 2010/11/9 Gregor Burck gre...@aeppelbroe.de: Hi, when I want to print the units for draw were dots, for the gui I want to use milimeter. So I create a function public function mmToDots(mm as integer,

Re: [Gambas-user] MOD arithetic operator

2010-11-09 Thread Jussi Lahtinen
Sorry about nitpicking... but modulo, integer division, addition, subtraction are operators. MOD, %, DIV, + , - are called operator symbols, or just symbols. Jussi On Tue, Nov 9, 2010 at 14:05, user demosthen...@gmail.com wrote: In my opinion that is correct choice. Because if you remove

Re: [Gambas-user] string operator ==

2010-11-09 Thread Demosthenes Koptsis
i have Gambas2 2.21 but i dont know which rev. is there any way to find it? On Tue, 2010-11-09 at 20:40 +0200, Jussi Lahtinen wrote: That is bug... However I cannot reproduce it with Gambas 2.21 or with Gambas 3 rev 3281. @ Ubuntu 10.04 64bit Are you sure you got it correct? Jussi