Neven MacEwan wrote:
>
> Kurt said
>
> > But typecasting is good : imagine being the 5th...
>
> Typecasting is Good?! and I thought it was only in Delphi as a Last Resort!!
> to give symbolic meaning to pointers
D'OH! Theres always a step too far...
As it stands typecasting in Delphi is good _in that_ it forces explicit
documentation of the types on a list.
>
> re
>
> > aItems[0].Text := 'a';
> > aItems[1].Text := 'b';
> > aItems[2].Name := 'c';
> > aItems[3].Parent := Form1;
>
> if AItems is a dynamic array of Record this is already valid
> are we talking about the save thing? when I started this request for
>
> var
> ASet: Set(TClass);
> Item: TClass
>
> Item := ASet.Add;
>
> I was meaning a homogenous set (obviously) of TClass Objects
Yes, but a subclass of a TClass is a TClass : if I can add a
subclass to a Set of TClass then isn't equivalent to what we have now?
ie does a Set of TCustomEditBox exclude a TEditBox?
> I'd hate to mention how a ForEach Method would be useful (an save my OOS)
>
> ASet.ForEach(Method)
>
> TTFN
> Neven
>
> ---------------------------------------------------------------------------
> 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"