Front page | perl.perl6.internals |
Postings from February 2006
Re: WRT *BooleanArray
Thread Previous
|
Thread Next
From:
Bernhard Schmalhofer
Date:
February 20, 2006 09:26
Subject:
Re: WRT *BooleanArray
Message ID:
43F9FB9D.6070901@gmx.de
Bob Rogers schrieb:
> From: Leopold Toetsch <lt@toetsch.at>
> Date: Mon, 20 Feb 2006 14:55:03 +0100
>in order to store the contents of a PMC into a boolean array? What do I
> et al. I think, if you use a BooleanArray with compact storage you are
> knowing why and don't need automatic conversion to/from float, string,
> nor PMC.
>
> What do you think?
> leo
>
>That would mean that I can't pass a boolean array to code that wants to
>operate on a generic array, which seems limiting.
>
> -- Bob Rogers
> http://rgrjr.dyndns.org/
>
>
As ResizableBooleanArray is meant for general use by HLLs I wouldn't want to
put any special restrictions on it. Everything that can be evaluated in
a Boolean context should be usable for setting the bits in an Array.
Is there a performance penalty for having these methods?
Regards, Bernhard
Thread Previous
|
Thread Next