comp.lang.ada
 help / color / mirror / Atom feed
From: nospam@thanks.com.au (Don Harrison)
Subject: Re: Visibility and access to "public" attributes
Date: 1997/09/03
Date: 1997-09-03T00:00:00+00:00	[thread overview]
Message-ID: <EFxApt.98F@syd.csa.com.au> (raw)
In-Reply-To: 01bcb787$eeb5a180$7e80400a@gavinspc


Gavin Collings wrote:

:...Would you care to contrast the Eiffel mechanism
:(objectively, of course) with that specified for Delphi properties. 

I probably shouldn't since I'm not familiar with Delphi. However, I'm tempted
to offer a few comments:

1) The second option (direct read-write access) presumably breaks encapsulation
   so is unsafe.

2) The second and third options are obscure, as Nick said. It appears possible 
   for assignment to have different meanings in the same context. 

   If so, I think it would be confusing compared with Eiffel's

   c.set_radius (value)      -- for clients, and
   radius := value           -- for suppliers.

3) It's more complex than Eiffel's minimalist approach.


Roger Browne would probably have some valuable insight on this..


Don.                     (Reverse to reply)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Don Harrison             au.com.csa.syd@donh






  parent reply	other threads:[~1997-09-03  0:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-08-29  0:00 Visibility and access to "public" attributes card
1997-08-29  0:00 ` Patrick Doyle
     [not found]   ` <JSA.97Aug29190453@alexandria.organon.com>
1997-08-30  0:00     ` Patrick Doyle
1997-08-30  0:00       ` Jon S Anthony
1997-09-01  0:00         ` Patrick Doyle
1997-08-30  0:00 ` Darren New
1997-09-02  0:00 ` Don Harrison
1997-09-02  0:00   ` Don Harrison
1997-09-02  0:00     ` Jon S Anthony
1997-09-02  0:00     ` Gavin Collings
1997-09-02  0:00       ` Patrick Doyle
1997-09-02  0:00       ` Nick Leaton
1997-09-02  0:00         ` Gavin Collings
1997-09-03  0:00       ` Don Harrison [this message]
1997-09-05  0:00       ` Nick Leaton
1997-09-05  0:00         ` Patrick Doyle
     [not found]         ` <01bcba0e$418f7380$2001df0a@gavinspc>
1997-09-05  0:00           ` Nick Leaton
1997-09-02  0:00   ` Peter Horan
  -- strict thread matches above, loose matches on Subject: below --
1997-08-29  0:00 card
1997-08-29  0:00 ` Ted Velkoff
1997-08-30  0:00 ` Darren New
1997-08-30  0:00 ` Patrick Doyle
1997-09-02  0:00 card
replies disabled

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