Thank you, that's what I thought it might be. This can be done at compile time with a
two-stage
compilation. The first one writes the code that the second compiles. Then the
checking can be
done during the second stage.
Daniel
Michael G Schwern wrote:
> On Tue, Jun 05, 2001 at 01:42:38PM -0700, Daniel S. Wilkerson wrote:
> > Someone please tell me what automatic method generation is exactly.
>
> Its the generation of large numbers of similar methods which would
> otherwise be really tedious to write out by hand, such as accessor
> methods. Without this, object-oriented programming would be
> hand-cramping tedium (or an elaborate exercise in editor macros).
> Its also very useful for generating complete sub-classes on the fly.
>
> Class::Accessor and Class::MethodMaker are two modules which I can
> think of off the top of my head that do this in Perl. Class::DBI
> absolutely depends on it. Java trips rather badly on this technique.
>
> For some elaboration...
> http://www.pobox.com/~schwern/papers/Why_I_Am_Not_A_Java_Programmer/why.pod
> in particular the section entitled "No dynamic method generation"
>
> For a really elaborate elaboration...
>
>http://www.pobox.com/~schwern/papers/Closures_and_Accessors/Closures_and_Automated_Accessors.txt
>
> --
>
> Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/
> Perl6 Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One
> I'm not actually Kevin Lenzo, but I play him on TV.