comp.lang.ada
 help / color / mirror / Atom feed
From: doylep@ecf.toronto.edu (Patrick Doyle)
Subject: Re: Visibility and access to "public" attributes
Date: 1997/09/05
Date: 1997-09-05T00:00:00+00:00	[thread overview]
Message-ID: <EG1zB1.1B@ecf.toronto.edu> (raw)
In-Reply-To: 34101640.8CF27E0@calfp.co.uk



In article <34101640.8CF27E0@calfp.co.uk>,
Nick Leaton  <nickle@pauillac> wrote:
>
>I did a quick bit of analysis on some Eiffel software.
>
>193 set_attribute features in 1085 classes, consisting of 84,000 lines
>of code.
>
>This is a very low figure compared to the number of attributes. I think
>the explaination lies with class invariants.

  And if this were merely syntactic sugar, then it would seem unnecessary.
However, the ability to change the semantics if the ":=" operator in
existing code is a powerful one, comparable to the ability to change
what was an attribute access into a function call.

  If this were available, perhaps it would be used more often than the
"set_attribute" functions currently are?

 -PD

-- 
--
Patrick Doyle
doylep@ecf.utoronto.ca




  reply	other threads:[~1997-09-05  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     ` Gavin Collings
1997-09-02  0:00       ` Nick Leaton
1997-09-02  0:00         ` Gavin Collings
1997-09-02  0:00       ` Patrick Doyle
1997-09-03  0:00       ` Don Harrison
1997-09-05  0:00       ` Nick Leaton
1997-09-05  0:00         ` Patrick Doyle [this message]
     [not found]         ` <01bcba0e$418f7380$2001df0a@gavinspc>
1997-09-05  0:00           ` Nick Leaton
1997-09-02  0:00     ` Jon S Anthony
1997-09-02  0:00   ` Peter Horan
  -- strict thread matches above, loose matches on Subject: below --
1997-09-02  0:00 card
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
replies disabled

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