On Wed, Mar 16, 2005 at 06:52:31PM +1100, Andrew Savige wrote: : # length() and bytes() seem not implemented yet (?) ...
And length will never be implemented because that word is now taboo, because it is not specific enough as to units in a Unicode world. More specific methods are now used: .bytes length in bytes .codes length in codepoints .graphs length in graphemes (language independent) .chars length in "letters" under current pragmatic linguistic context and for arrays .elems length in elements as well as .bytes length of concatenated elements in bytes .codes length of concatenated elements in codepoints .graphs length of concatenated elements in graphemes .chars length of concatenated elements in "letters" Other types may also define those where appropriate. And there could be other related methods, such as .memoryfootprint, or whatever we decide to call that. : Now since "for =$fh {...}" works with Pugs yet "for *$fh {...}" does : not work, which needs updating: Pugs or S02 or both ... or have I : misunderstood? :-) S02 needs updating. =$fh was a rather recent invention. Larry