comp.lang.ada
 help / color / mirror / Atom feed
From: chris@ECE.Concordia.CA (Chris O'Regan)
Subject: Something like "->" in Ada?
Date: 1996/04/01
Date: 1996-04-01T00:00:00+00:00	[thread overview]
Message-ID: <4jpd79$ces@newsflash.concordia.ca> (raw)


Hello,

   I am learning OOP with Ada 95.  Although I have only a bit of experience,
mostly with Perl 5, I find that the "->" operator is much more intuitive
than passing an object as a parameter to a subprogram.  Is it possible to
define "->" as the following:

	method( object ) = object->method()


   If so, how would I do that?


Thanks in advance,
--
    ____________________________________________________________________
     Chris O'Regan <chris@ECE.Concordia.CA>, UNIX Systems Administrator
              Department of Electrical and Computer Engineering
                   Concordia University, Montreal, Canada
                http://www.ECE.Concordia.CA/~chris/addr.html




             reply	other threads:[~1996-04-01  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-04-01  0:00 Chris O'Regan [this message]
1996-04-01  0:00 ` Something like "->" in Ada? Robert Dewar
1996-04-02  0:00   ` Mike Young
1996-04-03  0:00     ` Robert Dewar
1996-04-04  0:00       ` Mike Young
1996-04-04  0:00       ` Mike Young
1996-04-03  0:00     ` Tucker Taft
replies disabled

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