Re: [Gambas-user] MOD arithetic operator

2010-12-15 Thread Demosthenes Koptsis
that's nice. Is this applied for Gambas2 also? On Tue, 2010-12-14 at 09:16 +0100, Fabien Bodard wrote: good :) Le 14 décembre 2010 00:47, Benoît Minisini gam...@users.sourceforge.net a écrit : Hi to all, i want to ask why there is not a modulus operator like % for example? The

Re: [Gambas-user] MOD arithetic operator

2010-12-14 Thread Fabien Bodard
good :) Le 14 décembre 2010 00:47, Benoît Minisini gam...@users.sourceforge.net a écrit : Hi to all, i want to ask why there is not a modulus operator like % for example? The '%' operator has been added as a synonymous for 'MOD' in revision #3362. The '%=' assignment operator has been

Re: [Gambas-user] MOD arithetic operator

2010-12-13 Thread Benoît Minisini
Hi to all, i want to ask why there is not a modulus operator like % for example? The '%' operator has been added as a synonymous for 'MOD' in revision #3362. The '%=' assignment operator has been added as well. Regards, -- Benoît Minisini

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

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] 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

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] 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] MOD arithetic operator

2010-11-08 Thread Benoît Minisini
I know that there is MOD but i ask this question cause i compare the C++ operators with Gambas. As there is DIV and \ operator i was questioned why MOD has not an operator as % for example in C++ Because Gambas is a Basic, and the Basic languages I know do not use % as operator. --

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread user
Ok, Thank you for your answer! On Mon, 2010-11-08 at 20:02 +0100, Benoît Minisini wrote: I know that there is MOD but i ask this question cause i compare the C++ operators with Gambas. As there is DIV and \ operator i was questioned why MOD has not an operator as % for example in

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread user
This question was created to me when i saw the MOD function in arithmetic operators without a an operator as the DIV has one. http://gambasdoc.org/help/cat/arithop On Mon, 2010-11-08 at 20:02 +0100, Benoît Minisini wrote: I know that there is MOD but i ask this question cause i compare

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread Fabien Bodard
in another hand i don't understand the existance of the DIV operator :/ ... if DIV exist why not ADD/MINUS/MULT ? so ... i'm agree with user ... why not add the % synonymous ? this is not consistent 2010/11/9 user demosthen...@gmail.com: This question was created to me when i saw the MOD

Re: [Gambas-user] MOD arithetic operator

2010-11-08 Thread user
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 nice Gambas to be a