Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: f. to strin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 17 Topic 3979 of 4053
Post > Topic >>

Re: f. to string?

by anton@[EMAIL PROTECTED] (Anton Ertl) Mar 30, 2008 at 07:01 PM

Bruce McFarling <agila61@[EMAIL PROTECTED]
> writes:
>On Mar 29, 4:15 pm, an...@[EMAIL PROTECTED]
 (Anton Ertl)
>wrote:
>> Bruce McFarling <agil...@[EMAIL PROTECTED]
> writes:
>> >If FICL is a C-based forth, it should be straightforward to add
>> >REPRESENT. sprintf itself would be the core function
>
>> REPRESENT is pretty obviously modeled after ecvt(); they missed some
>> things in the transfer, as Ed has pointed out, and they also did not
>> provide an fcvt() variant.
>
>I just looked at a page describing ecvt() and fcvt() and I don't see
>what is missing from REPRESENT

There is no way to produce a shorter or longer string (which would be
useful for Infs and NaNs).  Getting an fcvt()-style result with ecvt()
or REPRESENT is complicated and inefficient.

>together with already existing CORE
>facilities if someone wants to reconstruct them.

Sure you can work around some of the missing parts.  It just takes a
lot more lines than it would if they were present (take a look at the
implementation of f.rdp in
<http://www.complang.tuwien.ac.at/viewcvs/cgi-bin/viewcvs.cgi/gforth/stuff.fs?rev=1.57&view=markup>).

It also leads to proposals for "fixing" REPRESENT that break existing
code and are very bad in other respects, too.

>However, it seems that people want to have a Comus word that puts the
>pieces together in a straightforward way.

That, too, but that's a different issue.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2008:
http://www.complang.tuwien.ac.at/anton/euroforth/ef08.html




 17 Posts in Topic:
f. to string?
Frank Buss <fb@[EMAIL   2008-03-29 14:22:05 
Re: f. to string?
Helmar <helmwo@[EMAIL   2008-03-29 06:26:31 
Re: f. to string?
Bruce McFarling <agila  2008-03-29 09:22:10 
Re: f. to string?
anton@[EMAIL PROTECTED]   2008-03-29 20:15:50 
Re: f. to string?
Bruce McFarling <agila  2008-03-29 17:00:03 
Re: f. to string?
"Ed" <nospam  2008-03-30 15:11:45 
Re: f. to string?
anton@[EMAIL PROTECTED]   2008-03-30 19:01:29 
Re: f. to string?
Bruce McFarling <agila  2008-03-29 22:50:53 
Re: f. to string?
Bruce McFarling <agila  2008-03-30 15:30:42 
Re: f. to string?
"Ed" <nospam  2008-03-30 15:02:22 
Re: f. to string?
Bruce McFarling <agila  2008-03-29 22:19:43 
Re: f. to string?
"Ed" <nospam  2008-03-31 11:02:54 
Re: f. to string?
Bruce McFarling <agila  2008-03-30 17:49:38 
Re: f. to string?
"Ed" <nospam  2008-04-01 14:00:42 
Re: f. to string?
Bruce McFarling <agila  2008-03-31 20:38:09 
Re: f. to string?
"Ed" <nospam  2008-04-04 17:53:28 
Re: f. to string?
Bruce McFarling <agila  2008-04-04 11:10:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 8:46:53 CDT 2008.