[squeak-dev] The Trunk: TrueType-nice.13.mcz
Colin Putney
cputney at wiresong.ca
Tue Jan 19 02:47:07 UTC 2010
On 2010-01-18, at 10:34 AM, Nicolas Cellier wrote:
>
> BTW, I see much code like:
> 'true' asByteArray
> Not that it costs that much CPU, but I'd like to make it a literal...
> However, I'd like to preserve the initializing code and semantics.
> This solution is not really satisfying:
> "'true' asByteArray" #[116 114 117 101]
I prefer this option, actually. 'true' asByteArray is bogus to begin with. What encoding are those bytes? ASCII? Latin-1? UTF8? Do the bytes that are produced depend on the internal encoding of String? Or maybe the encoding of the changes file. Sure, all these questions have answers, but they are not obvious from the source code. At least #[116 114 117 101] is unambiguous.
Colin
More information about the Squeak-dev
mailing list
|