Re: [PATCH 1/2] Allow for more than one PERL_MAGIC_ext magic
- From: Kevin Ryde <user42 zip com au>
- To: gtk-perl-list gnome org
- Subject: Re: [PATCH 1/2] Allow for more than one PERL_MAGIC_ext magic
- Date: Wed, 01 Dec 2010 08:56:49 +1100
Florian Ragwitz <rafl debian org> writes:
+void
+gperl_attach_mg (SV * sv, void * ptr)
+{
+ sv_magicext (sv, NULL, PERL_MAGIC_ext, &gperl_mg_vtbl,
+ (const char *)ptr, 0);
I suppose the alternative to magic would be a pointer->pointer hash
table would it? Would that be slower than hanging it in the magic list?
Or on the other hand does the magic mean a check in there for all hash
operations on objects?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]