comp.lang.ada
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@rfc1149.net>
Subject: Re: Why is abs an operator, not a function?
Date: 18 Oct 2006 09:36:10 +0200
Date: 2006-10-18T09:40:01+02:00	[thread overview]
Message-ID: <877iyyulcl.fsf@willow.rfc1149.net> (raw)
In-Reply-To: 1161148425.954662.138180@b28g2000cwb.googlegroups.com

>>>>> "Jerry" == Jerry  <lanceboyle@qwest.net> writes:

Jerry> Why is abs an operator and not a function? Just wondering.  Is
Jerry> there no way to write a function abs() that, say, computes the
Jerry> absolute value of each of the components of a float array?

Of course there is :) You can overload operators as well in Ada, just
use the name "abs" (including the quotes).

  Sam
-- 
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/



  parent reply	other threads:[~2006-10-18  7:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-18  5:13 Why is abs an operator, not a function? Jerry
2006-10-18  7:30 ` Dmitry A. Kazakov
2006-10-18  7:36 ` Samuel Tardieu [this message]
2006-10-19  1:45 ` Robert A Duff
2006-10-19  4:30   ` Keith Thompson
2006-10-23  2:39 ` Jerry
replies disabled

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