[fpc-devel] class abstract, class sealed implementation. please review.

fpclist at silvermono.co.za fpclist at silvermono.co.za
Mon Oct 19 16:19:31 CEST 2009


On Monday 19 October 2009 15:35:53 Paul Ishenin wrote:
> Vinzent Höfler wrote:
> > And then inside the implementation:
> >
> > TNokia3720Phone.SomeMethod;
> > begin
> >    case self.Edition of
> >       n3720peStandard:
> >          ImplementedThatWay;
> >       n3720peDeluxe:
> >          ImplementedThisWay;
> >    end;
> > end;
>
> When you are phone manufacturer you know you model line very well. So
> you can define final classes and intermediate very well. If
> implemenetation is different then you are free to use
>
> TNokia3720PhoneStandard = class sealed(TNokia3720Phone)
> TNokia3720PhoneDeluxe = class sealed(TNokia3720Phone)
>
> and ofcource in this case TNokia3720Phone becomes not sealed.
>
> I don't want to continue this discussion. Moreover I don't ask anybody
> to use it if they find this not useful. Those who need it will use it.
> What's the problem after all?

Here's someone who has taken some initiative and all we've done is shoot him 
down. Come on guys?

Nino:-

>
> Best regards,
> Paul Ishenin.
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel






More information about the fpc-devel mailing list