Question about `is_real_sequence'

5 messages Options
Embed this post
Permalink
Chris Saunders-4

Question about `is_real_sequence'

Reply Threaded More More options
Print post
Permalink
I'm not sure how to interpret the purpose of `is_real_sequence' from class
READABLE_STRING_8.  The documentation says "Does `Current' represent a real
sequence?" but I'm not sure what "real sequence" means.  What I was looking
for is something similar to `is_double' but that accepts strings of any
length.  For example I would like to know from code if
12345678901234567890123456789012345678901234567890.123456789012345678901234567890
represents a real number.  Is that what `is_real_sequence' provides?

Regards
Chris Saunders

Jimmy Johnson

Re: Question about `is_real_sequence'

Reply Threaded More More options
Print post
Permalink
Chris,

You got me curious so...

If you compare the ensure statements [just comments] of `is_real_sequence' and `is_real' I think it will answer your question.  In layman's terms I think `is_real' is true if the string could be converted to a REAL with in the size/precision limits of REAL; `is_real_sequence' is true if it looks like a real number and has no length limit (not necessarily convertable to a REAL).

so the string "+6.63e-34" would be `is_real_sequence' and also would be `is_real'.

Jimmy J. Johnson


--- In [hidden email], "Chris Saunders" <evas@...> wrote:

>
> I'm not sure how to interpret the purpose of `is_real_sequence' from class
> READABLE_STRING_8.  The documentation says "Does `Current' represent a real
> sequence?" but I'm not sure what "real sequence" means.  What I was looking
> for is something similar to `is_double' but that accepts strings of any
> length.  For example I would like to know from code if
> 12345678901234567890123456789012345678901234567890.123456789012345678901234567890
> represents a real number.  Is that what `is_real_sequence' provides?
>
> Regards
> Chris Saunders
>


Chris Saunders-4

Re: Re: Question about `is_real_sequence'

Reply Threaded More More options
Print post
Permalink
Ah, thanks Jim.  When I was looking at this query I saw it through the flat
view of STRING_8 so the ensure part did not appear.  I'll try to remember
that for the future as I think I would have understood it use by looking at
the part you pointed out.  Thanks again.

Regards
Chris Saunders

----- Original Message -----
From: Jimmy Johnson
To: [hidden email]
Sent: Sunday, September 20, 2009 7:39 PM
Subject: [eiffel_software] Re: Question about `is_real_sequence'


  Chris,

You got me curious so...

If you compare the ensure statements [just comments] of `is_real_sequence'
and `is_real' I think it will answer your question. In layman's terms I
think `is_real' is true if the string could be converted to a REAL with in
the size/precision limits of REAL; `is_real_sequence' is true if it looks
like a real number and has no length limit (not necessarily convertable to a
REAL).

so the string "+6.63e-34" would be `is_real_sequence' and also would be
`is_real'.

Jimmy J. Johnson

--- In [hidden email], "Chris Saunders" <evas@...> wrote:

>
> I'm not sure how to interpret the purpose of `is_real_sequence' from class
> READABLE_STRING_8. The documentation says "Does `Current' represent a real
> sequence?" but I'm not sure what "real sequence" means. What I was looking
> for is something similar to `is_double' but that accepts strings of any
> length. For example I would like to know from code if
> 12345678901234567890123456789012345678901234567890.123456789012345678901234567890
> represents a real number. Is that what `is_real_sequence' provides?
>
> Regards
> Chris Saunders
>


 

CRISMER Paul-Georges

Where are "execution parameters" stored?

Reply Threaded More More options
Print post
Permalink
Hello,
 
Where are "execution parameters" stored?
 
I would like to memorize execution parameters to prevent reintroducing
them through the dialog box, especially after some eiffelstudio cleaning
operation.
Is this a feature of EiffelStudio? I cannot find this information in the
documentation.
 
Thank you,
 
Best regards,
 
Paul G. Crismer
 

***** Disclaimer *****
http://www.groupes.be/1_mail-disclaimer.htm


[Non-text portions of this message have been removed]

Jocelyn.Fiat.ES

Re: Where are "execution parameters" stored?

Reply Threaded More More options
Print post
Permalink
Please check the new forum post:
    http://eiffelstudio.origo.ethz.ch/node/312

    * On Windows: %HOMEDRIVE%\%HOMEPATH%\Local Settings\Application
      Data\Eiffel Software\eiffel64\session
    * On unices: $HOME/.es/64/session

The files containing the

    * execution parameters: files ending with .dbg.ses
    * other debugger's data such as breakpoints: files ending with .dbg.ses

As said in the forum's post, we are thinking about storing those data as
plain text. This might help people to migrate their parameters.

-- Jocelyn

CRISMER Paul-Georges wrote:

> Hello,
>  
> Where are "execution parameters" stored?
>  
> I would like to memorize execution parameters to prevent reintroducing
> them through the dialog box, especially after some eiffelstudio cleaning
> operation.
> Is this a feature of EiffelStudio? I cannot find this information in the
> documentation.
>  
> Thank you,
>  
> Best regards,
>  
> Paul G. Crismer
>  
>
> ***** Disclaimer *****
> http://www.groupes.be/1_mail-disclaimer.htm
>
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
>  


--
Jocelyn
------------------------------------------------------------------------  
Eiffel Software
805-685-1006
http://www.eiffel.com       
Customer support: http://support.eiffel.com       
User group: http://groups.eiffel.com/join       
------------------------------------------------------------------------