ExtUti...::Basic(3pm)

πŸ’– NAME πŸ’–

ExtUtils::Typemaps::Basic β€” bestie, it's a whole set of typemaps for the simple types πŸŽ€

(oh and hi, this is a 3pm page from the User Contributed Perl Documentation section, so you know it's the real deal ✨)


🌸 SYNOPSIS 🌸

use ExtUtils::Typemaps::Basic;
# First, read my own type maps:
my $private_map = ExtUtils::Typemaps->new(file => 'my.map');

# Then, get additional typemaps and merge them into mine
$private_map->merge(typemap => ExtUtils::Typemaps::Basic->new);

# Now, write the combined map to an output file
$private_map->write(file => 'typemap');

Like, look at that little workflow go 😭 it's giving organized. You read your own maps, you merge in the extra ones, you write the combined map out. Iconic behavior only πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so ExtUtils::Typemaps::Basic is literally an ExtUtils::Typemaps subclass, no cap. What it does is hand you a set of mappings for some basic integer, unsigned, and floating point types β€” the ones that, lowkey, are not in perl's builtin typemap. So it's the filler for the gaps, and it ate πŸ”₯


✨ METHODS ✨

These are the overridden methods, bestie β€” there's just the one, and it's a bop:

πŸŽ€ new

Creates a new ExtUtils::Typemaps::Basic object. It acts as any other ExtUtils::Typemaps object, except that it has the object maps initialized. Like, same energy as always, but the maps are already loaded and ready to go πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

  • ExtUtils::Typemaps
  • ExtUtils::Typemaps::Default

(the whole friend group, fr fr 🫢)


🌈 AUTHOR 🌈

Steffen Mueller <smueller@cpan.org> πŸ’œ


Copyright 2010, 2011, 2012, 2013 by Steffen Mueller

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Fr fr, same terms as Perl itself β€” read the license before you redistribute, bestie, it's not a vibe suggestion 😀

and that's the whole page, mwah πŸ’‹ go forth and typemap πŸ’…

perl v5.36.0 Β· 2022-10-21 Β· ExtUti...::Basic(3pm) β€” signed, sealed, delivered, and yes the header line was right there the whole time πŸŽ€βœ¨

πŸ“¦ where this page comes from