comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Language Revision : "/" and "div"
Date: Wed, 05 May 2010 04:31:37 +0200
Date: 2010-05-05T04:31:37+02:00	[thread overview]
Message-ID: <op.vb7nyzw4ule2fv@garhos> (raw)
In-Reply-To: 8aa58be8-a9b2-4653-8234-e5b6a70f310f@k41g2000yqb.googlegroups.com

Le Sat, 01 May 2010 08:52:18 +0200, vincent.diemunsch@gmail.com  
<vincent.diemunsch@gmail.com> a écrit:

> Hi everybody,
>
> I wonder why Ada uses "/" to express the integer division and not
> "div".
Hello,

I suppose because Ada’s typed and has overloading, and you will probably  
not want Ada to force you to create a new name each time you define a  
similar function on different types. There is most of time no type hint in  
function and procedure names in typical Ada source texte.

Are you possibly thinking about “div” because other language has this ?

-- 
No-no, this isn't an oops ...or I hope (TM) - Don't blame me... I'm just  
not lucky



      parent reply	other threads:[~2010-05-05  2:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-01  6:52 Language Revision : "/" and "div" vincent.diemunsch
2010-05-01  9:25 ` Dmitry A. Kazakov
2010-05-01 10:46 ` Georg Bauhaus
2010-05-01 16:26 ` Jeffrey R. Carter
2010-05-02 21:33 ` Gene
2010-05-05  2:31 ` Yannick Duchêne (Hibou57) [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox