On Fri, 2009-01-16 at 14:18 +0100, Gerrit Leder wrote:
> Hello,
Hi,
> please add to_boolean to library class bit_string!
Why not, but, a time being, I have no idea of the purpose
of such a routine. Could you propose a short description,
what kind of assertions ans why not, the implementation!
Have a good day,
> I have formerly used BIT N to write an application. And it was
> possible to convert an entry (item) in BIT N to a boolean value.
>
Function item already exists. Extract from short bit_string below:
item (idx: INTEGER_32): BOOLEAN
-- True if `idx'-th bit is 1, False otherwise.
require
valid_index(idx)
--
--------------------------------------------------------------
[hidden email] -- IUT Nancy Charlemagne -- LORIA
http://SmartEiffel.loria.fr -- The GNU Eiffel Compiler
POST: Loria, B.P. 239,54506 Vandoeuvre les Nancy Cedex, FRANCE
Voice:+33 0354503827 Mobile: +33 0665362381 Fax:+33 0383913201