[Gambas-user] MOD arithetic operator
user
demosthenesk at ...626...
Tue Nov 9 08:40:33 CET 2010
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 better Basic
language with the meaning to have the good things of other languages but
with Basic style so to be an advanced Basic more strong to be near other
Linux style languages.
As i know Basic does not have pointers either.
But Gambas 3 has!
And the EXTERN function leads things more than a Basic language.
So in my opinion an % operator is not so big deal thing to be out of a
Basic language.
Indeed i suggest it as a wish/new feature if you like.
But all depends how Basic like style we want to keep.
On Tue, 2010-11-09 at 08:25 +0100, Fabien Bodard wrote:
> 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 <demosthenesk at ...626...>:
> > 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 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.
> >>
> >
> >
> >
> > ------------------------------------------------------------------------------
> > 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