[fpc-pascal] Out of scope method?

Marcos Douglas B. Santos md at delfire.net
Thu Apr 6 16:42:30 CEST 2017


On Thu, Apr 6, 2017 at 11:01 AM, Ryan Joseph <ryan at thealchemistguild.com> wrote:
>
>
> > On Apr 6, 2017, at 8:54 PM, Marcos Douglas B. Santos <md at delfire.net> wrote:
> >
> > Pretty clear, right?
> >
> > Because this "problem" I have a "pattern" that I called "New Method".
> >
> > You can see how it works in my article:
> > (you need to translate from Portuguese)
> > http://objectpascalprogramming.com/posts/interfaces-e-o-metodo-estatico-new/
>
> This sounds highly prone to errors to be honest. Don’t you lose all type checking also? That would have to be deal breaking I would think.

Lose type checking?
Of course not. You still use the same language, interfaces, classes...

Don't confuse "New, the function" with "New, a method in a class".



More information about the fpc-pascal mailing list