This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use syntax from perlguts for testing objects
authorJohn Peacock <jpeacock@cpan.org>
Wed, 7 Dec 2011 01:55:09 +0000 (20:55 -0500)
committerDavid Golden <dagolden@cpan.org>
Fri, 9 Dec 2011 19:59:04 +0000 (14:59 -0500)
commit573a19fb2c79f41cfc7f3db5a8ad14e14a4dccf9
treee7c0c975264052c4d7fb48acafc9a91c8566ebc2
parenta97f6d148c766c74f3c3200d95d9fbf569067b45
Use syntax from perlguts for testing objects

The following paragraph is in perlguts.pod:

   To check if you've got an object derived from a specific class you have
   to write:

       if (sv_isobject(sv) && sv_derived_from(sv, class)) { ... }

which does the right thing with magical things like tied scalars.

Signed-off-by: David Golden <dagolden@cpan.org>
sv.c
universal.c
util.c