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: Child Packa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 7 Topic 5643 of 5922
Post > Topic >>

Re: Child Package Operator Visibility

by Jean-Pierre Rosen <rosen@[EMAIL PROTECTED] > Apr 14, 2008 at 09:42 AM

Robert A Duff a écrit :

> Nobody would type:
> 
>     function "+" (X, Y: T) return T renames Pkg."+";
>     function "-" (X, Y: T) return T renames Pkg."-";
>     ...
> 
> Instead, you type:
> 
>     function "+" (X, Y: T) return T renames Pkg."+";
> 
> Cut&paste, to get:
> 
>     function "+" (X, Y: T) return T renames Pkg."+";
>     function "+" (X, Y: T) return T renames Pkg."+";
>     ...
> 
> Then fix it up:
> 
>     function "+" (X, Y: T) return T renames Pkg."+";
>     function "-" (X, Y: T) return T renames Pkg."+";
>     ...
> 
> Oops.  Now you've got a nasty bug, which is hard to see.  ;-)
> 
Unless you use AdaControl's rule:
"check declarations (non_identical_renaming)"

(Yes, it's a plug. Sorry, couldn't resist)
-- 
---------------------------------------------------------
            J-P. Rosen (rosen@[EMAIL PROTECTED]
)
Visit Adalog's web site at http://www.adalog.fr
 




 7 Posts in Topic:
Child Package Operator Visibility
"pakman" <pa  2008-04-05 10:03:27 
Re: Child Package Operator Visibility
"(see below)" &  2008-04-05 15:19:17 
Re: Child Package Operator Visibility
Adam Beneschan <adam@[  2008-04-07 08:03:44 
Re: Child Package Operator Visibility
"(see below)" &  2008-04-07 18:30:40 
Re: Child Package Operator Visibility
Robert A Duff <bobduff  2008-04-13 16:16:34 
Re: Child Package Operator Visibility
Jean-Pierre Rosen <ros  2008-04-14 09:42:21 
Re: Child Package Operator Visibility
Anh Vo <anhvofrcaus@[E  2008-04-07 08:25:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon Oct 6 15:10:36 CDT 2008.