[Gambas-user] MOD arithetic operator
user
demosthenesk at ...626...
Tue Nov 9 12:46:44 CET 2010
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 last note if old developers like very much the strict classic Basic
style you must weight their opinion if it is going to add or not a MOD
operator, so not to be hard feelings.
On Tue, 2010-11-09 at 12:31 +0100, Benoît Minisini wrote:
> > 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 reading
> > the manual with programming style.
> >
> > To do this there are two options
> > - MOD and DIV should not have operators
> > - MOD and DIV it is nice to have operators.
> >
> > Or we leave the things as they are.
> >
> > All options are respectfull ones.
> >
>
> I can add '%' to the compiler as a MOD synonymous, as I don't think I will use
> this character for anything else.
>
More information about the User
mailing list