[GAP] Ada 2005 object.method doesn't always dispatch

Martin Carlisle carlislem at acm.org
Wed Feb 15 22:25:10 CET 2006


Yes, the same behavior happens in Ada 95.  However, I think using the
object.method notation made it less obvious to me that I shouldn't expect
dispatching.

--Martin 

-----Original Message-----
From: gap-bounces at gnat.info [mailto:gap-bounces at gnat.info] On Behalf Of
Pascal Obry
Sent: Wednesday, February 15, 2006 2:46 PM
To: GNAT Academic Program discussion list
Subject: Re: [GAP] Ada 2005 object.method doesn't always dispatch

Martin,

> I suspect you may have students with Java or C# experience who will 
> also stumble on this point, so I thought I would bring it to your
attention.

Don't we have the same behavior in Ada95 (I mean this is not related to Ada
2005). Calling a method with a non-classwide type (access type or
not) will never dispatch.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
_______________________________________________
GAP mailing list
GAP at gnat.info
/no-more-mailman.html
To unsubscribe from this list, please contact the GAP GNAT Tracker
administrator within your organization.



More information about the GAP mailing list