On Thu, Apr 6, 2017 at 11:01 AM, Ryan Joseph <r...@thealchemistguild.com> wrote: > > > > On Apr 6, 2017, at 8:54 PM, Marcos Douglas B. Santos <m...@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". _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal