[Gambas-user] MOD arithetic operator
Jussi Lahtinen
jussi.lahtinen at ...626...
Tue Nov 9 19:35:46 CET 2010
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 <demosthenesk at ...626...> wrote:
> > 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 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.
> > >
> >
>
>
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list