Syntactic Confectionery Delight | |
PerlMonks |
Re: CHAR_BIT != 8by tobyink (Canon) |
on Mar 08, 2013 at 15:45 UTC ( [id://1022450]=note: print w/replies, xml ) | Need Help?? |
C99 says that CHAR_BIT must be at least 8; POSIX says it must be exactly 8; on Windows it's 8. That's about all the platforms it's worth caring about. Some DSPs use CHAR_BIT=16 or CHAR_BIT=32, but they're never going to run Perl anyway. How to get it? This is cheating I'm sure...
It's the kind of detail you might expect to be provided by Config, but no such luck :-( Update: meh... I wasn't looking hard enough...
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|