Chris Nandor wrote:
>
> Maybe you and I have different definitions of stub module. It certainly
> doesn't set up OOP, but perhaps it could be extended to provide default
> constructors, etc., as an option to h2xs. Just in case you don't know,
> here is what it does now:
>
> [pudge@yaz pudge]$ h2xs -a -n Foo
> Writing Foo/Foo.pm
> Writing Foo/Foo.xs
> Writing Foo/Makefile.PL
> Writing Foo/test.pl
> Writing Foo/Changes
> Writing Foo/MANIFEST
> [pudge@yaz pudge]$ less Foo/Foo.pm
> package Foo;
Yeah, I was aware of that stuff. Your idea of putting new() and stuff
like that in h2xs I like better than mine - it makes more sense. Maybe a
flag to h2xs like you said that allows setting up OO stuff. -oo maybe.
:-)
If it provided a simple new() and a little config() method which
provided simple attribute accessor methods that would be neat. In fact,
one could argue that the -a and the "-oo" flags could almost be
separated entirely, since OOP doesn't need @EXPORT_OK, Exporter, or any
of that other stuff.
If anyone's at all interested I could put together a patch for this.
What's the current version of h2xs? Should I email p5p about this?
Thanks.
-Nate