in reply to Re^21: Interleaving bytes in a string quickly
in thread Interleaving bytes in a string quickly
What is PV w/ UTF8=0 or a PV w/ UTF8=1., if it is not "Perl ... assigning a meaning"?
uint8 i = 2; uint16 j = i;
Does the second assignment change the meaning of 2? No. It's still the number of cats my friends has.
my $i = "\x82"; utf8::upgrade( my $j = $i );
Does the second assignment change the meaning of "\x82"? No. It's still the HDMI code for something or other.
because I know I'm never going to call upgrade(), or anything else that might cause perl to assign any other meaning than bytes to my data.
Presumably you mean "anything else that might cause perl to use the 32/64-bit string format", then why didn't you say so?
It's a very weird assumption to make, but you're free to make all the assumptions you want.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^23: Interleaving bytes in a string quickly
by BrowserUk (Patriarch) on Mar 01, 2010 at 14:20 UTC | |
by ikegami (Patriarch) on Mar 01, 2010 at 14:50 UTC | |
by BrowserUk (Patriarch) on Mar 01, 2010 at 14:59 UTC | |
by ikegami (Patriarch) on Mar 01, 2010 at 15:13 UTC | |
by BrowserUk (Patriarch) on Mar 01, 2010 at 16:20 UTC | |
| |
by BrowserUk (Patriarch) on Mar 01, 2010 at 16:43 UTC |