Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Ada > Re: Are there n...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 34 of 42 Topic 5611 of 5831
Post > Topic >>

Re: Are there noticable differences in Ada acceptance by country?

by gpriv@[EMAIL PROTECTED] Mar 21, 2008 at 12:15 PM

On Mar 21, 12:16 am, "Jeffrey R. Carter"
<spam.jrcarter....@[EMAIL PROTECTED]
> wrote:
> gp...@[EMAIL PROTECTED]
 wrote:
>
> > From my own C experience: using code from different sources X and Y
> > coordinates in function calls were in different order: foo(x,y);
> > boo(height, width), etc. Easy to overlook.
>
> Which is why we don't use C:

But sometimes we have no choice, unfortunately
:-(

For C++ I come up with macros NEWTYPE(TypName,BaseType) and
SUBTYPE(TypeName,BaseType) that generate structure-envelopes with all
basic arithmetic overloads that somewhat mimics Ada typing
functionality.

NEWTYPE(X_Coord, float);
NEWTYPE(Y_Coord, float);

void Foo(X_Coord x, Y_Coord y);



>
> Foo (X => X, Y => Y);
> Boo (Width => X, Height => Y);
>
> --
> Jeff Carter
> "C++: The power, elegance and simplicity of a hand grenade."
> Ole-Hjalmar Kristensen
> 90
 




 42 Posts in Topic:
Are there noticable differences in Ada acceptance by country?
Mike Silva <snarflemik  2008-03-18 12:08:30 
Re: Are there noticable differences in Ada acceptance by country
Pascal Obry <pascal@[E  2008-03-18 21:41:49 
Re: Are there noticable differences in Ada acceptance by country
"Phaedrus" <  2008-03-18 14:58:15 
Re: Are there noticable differences in Ada acceptance by country
Mike Silva <snarflemik  2008-03-18 15:25:50 
Re: Are there noticable differences in Ada acceptance by country
Ludovic Brenta <ludovi  2008-03-18 23:50:00 
Re: Are there noticable differences in Ada acceptance by country
Thomas <thomas@[EMAIL   2008-03-19 12:42:13 
Re: Are there noticable differences in Ada acceptance by country
Thomas <thomas@[EMAIL   2008-03-19 08:42:17 
Re: Are there noticable differences in Ada acceptance by country
"Peter C. Chapin&quo  2008-03-19 06:35:16 
Re: Are there noticable differences in Ada acceptance by country
"Phaedrus" <  2008-03-19 13:21:21 
Re: Are there noticable differences in Ada acceptance by country
Dennis Lee Bieber <wlf  2008-03-19 23:08:06 
Re: Are there noticable differences in Ada acceptance by country
David Thompson <dave.t  2008-03-31 04:27:45 
Re: Are there noticable differences in Ada acceptance by country
DScott <Merlin43PhD@[E  2008-03-31 00:40:24 
Re: Are there noticable differences in Ada acceptance by country
Ludovic Brenta <ludovi  2008-03-19 05:09:07 
Re: Are there noticable differences in Ada acceptance by country
Ludovic Brenta <ludovi  2008-03-19 05:16:08 
Re: Are there noticable differences in Ada acceptance by country
"framefritti@[EMAIL   2008-03-19 05:51:51 
Re: Are there noticable differences in Ada acceptance by country
Tero Koskinen <tero.ko  2008-03-19 21:04:58 
Re: Are there noticable differences in Ada acceptance by country
Jean-Pierre Rosen <ros  2008-03-20 09:57:30 
Re: Are there noticable differences in Ada acceptance by country
svaa@[EMAIL PROTECTED]   2008-03-19 12:55:05 
Re: Are there noticable differences in Ada acceptance by country
"Phaedrus" <  2008-03-19 13:14:40 
Re: Are there noticable differences in Ada acceptance by country
Ivan Levashew <octagra  2008-03-20 07:34:56 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-19 21:37:59 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-19 21:52:47 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-20 20:22:22 
Re: Are there noticable differences in Ada acceptance by country
"Dmitry A. Kazakov&q  2008-03-20 21:48:14 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-20 22:17:18 
Re: Are there noticable differences in Ada acceptance by country
"Dmitry A. Kazakov&q  2008-03-21 08:52:38 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-21 16:44:50 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-20 14:17:57 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-20 15:59:25 
Re: Are there noticable differences in Ada acceptance by country
tmoran@[EMAIL PROTECTED]   2008-03-20 20:54:04 
Re: Are there noticable differences in Ada acceptance by country
"Jeffrey R. Carter&q  2008-03-21 04:16:40 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-21 16:41:21 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-21 16:39:31 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-21 12:15:53 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-21 12:21:52 
Re: Are there noticable differences in Ada acceptance by country
Adam Beneschan <adam@[  2008-03-21 14:11:34 
Re: Are there noticable differences in Ada acceptance by country
Simon Wright <simon.j.  2008-03-22 07:02:38 
Re: Are there noticable differences in Ada acceptance by country
Maciej Sobczak <see.my  2008-03-22 07:00:03 
Subtypes to represent coordinate charts
Eric Hughes <eric.eh9@  2008-03-22 10:16:21 
Re: Are there noticable differences in Ada acceptance by country
gpriv@[EMAIL PROTECTED]   2008-03-24 11:01:49 
Re: Are there noticable differences in Ada acceptance by country
Tero Koskinen <tero.ko  2008-03-25 20:02:43 
Re: Are there noticable differences in Ada acceptance by country
Gautier <gautier@[EMAI  2008-03-25 20:57:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 20:55:09 CDT 2008.