Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.40 KB | None | 0 0
  1. $ cat track_number.ads
  2. package Track_Number is
  3.    type Number_Type is abstract tagged private;
  4.    function "=" (Left, Right : Number_Type) return Boolean is abstract;
  5. private
  6.    type Number_Type is abstract tagged null record;
  7. end Track_Number;
  8. $ gnatmake -gnatwh track_number.ads
  9. gcc -c -gnatwh track_number.ads
  10. track_number.ads:3:13: warning: declaration of "=" hides one in package Standard
  11. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement