Paul

Thanks for getting my name right :-)

I thought 'friend' in C++ is required for the overloading of operators
(long time since i did any C++)

If you are going to make something private then the rule should be you only
whant to access this property
by methods of this object - In which case it is quite valid for the FList to
be protected, It is a collection
after all..not a list - the point is TCollection should either
a/ implement a Sort property/method or
b/ allow a decendant to..Which you can do - if not with the most efficiency

The reality of OO languages is that they are not the most efficient in
execution
(which is why you will not see real time control systems written in C++,
Delphi, C#, Java et al)

It is funny but they same problems are facing DB developers - that the OO
databases are horribly inefficient
compared with relational ones (there is something about Heterogenous data
that makes it difficult to process)

[22 pages of further rambling on the dialectic of  computer systems control
vs flexibility edited out here]

To conclude this is nothing wrong with Delphi (or TCollection) just you
expectation of it

TTFN
Neven




----- Original Message -----
From: Paul Heinz <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Thursday, 21 September 2000 16:33
Subject: RE: [DUG]: Sorting a Collection


> Neven wrote:
>
> > My gripe is the object pascal inconsistency that allows classes in the
> > same unit to reference 'private' properties which leads to these sort of
> > problems
> >
> > They could have exposted the list in this case
>
> Yeah. I have mixed feelings about the 'private' only applying outside a
> unit. It can lead to somewhat sloppy visibility decisions.
>
> Delphi has the 'private' rule because Object Pascal lacks the 'friend'
> concept of C++. Mind you, there are OO purists who think that 'friend' is
>
> <MIKE-MYERS>
> the froo-its of the Deeee-vil
> </MIKE-MYERS>
>
> Sometimes, you want a bunch of classes that want play with each others
> privates under the covers (that came out rather saucier than I intended
:-)
>
> Particularly for Observer and Chain Of Command style design patterns e.g.
> TDataSet, TDataSource, TDataLink.
>
> You either need 'friend' or the unit trick to be able to implement them
> without exposing more than you really want to.
>
> Personally, I'd rather see 'friend' in Delphi but that's probably just me.
>
> TTFN,
>   Paul.
>
>
> --------------------------------------------------------------------------
-
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to