On Thu, 14 Apr 2005, Tassilo von Parseval wrote:
On Thu, Apr 14, 2005 at 06:33:17PM -0400 Scott Lanning wrote:
(Mozilla::DOM is the module I'm doing, if anyone's curious.)
Not really XS-related: I probably wouldn't generate the PODs dynamically
at install-time.
I agree, I separated the POD from XS this weekend for the same reasons
you gave, plus to remove the otherwise-unnecessary Glib.pm dependence.
I put a lot of time into the docs (well, mostly finding them for copying).
I also prefer to hand-tweak them, as the auto-generation isn't perfect.
However, it's been convenient to have it auto-generated, and in fact
it also serves as a small check in case I misspelled something, since it
might complain when it does the parsing. The main reason I did it, however,
was because it's my first XS project and I was copying what was done in
Gtk2::MozEmbed. (Cargo-culting galore.)
Actually, since you brought up the garbage-collection point related to
references, I'm worried that I've done everything wrong. Everything in
the XS simply passes pointers around. It works, though, except for one
major segfault problem which I'm very frustrated with. (I'll post it
later in a separate thread when I have time to explain it coherently.)