Re: [Chicken-hackers] ##sys#double-number gone; intetional?

2013-03-04 Thread Christian Kellermann
* Jörg F. Wittenberger joerg.wittenber...@softeyes.net [130304 14:57]:
 I found that ##sys#double-number is gone from library.scm .
 
 Still it's there in chicken.h .  Mistake or intended?
 At least I'd consider it worth a news item.
 
 What should I use instead?

It has been removed on Oct 4th with commit 
6e10dfb17175faa307a2a7230cf705c987af85c5

I guess an alternative would be to use inexact-exact?

Kind regards,

Christian

-- 
In the world, there is nothing more submissive and weak than
water. Yet for attacking that which is hard and strong, nothing can
surpass it. --- Lao Tzu

___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers


Re: [Chicken-hackers] ##sys#double-number gone; intetional?

2013-03-04 Thread Christian Kellermann
* Jörg F. Wittenberger joerg.wittenber...@softeyes.net [130304 14:57]:
 I found that ##sys#double-number is gone from library.scm .
 
 Still it's there in chicken.h .  Mistake or intended?

Are you mixing up files? Or using a chicken.h from a previous build?
In my version there is no trace of double-number in chicken.h
(nor the rest of the repo).

-- 
In the world, there is nothing more submissive and weak than
water. Yet for attacking that which is hard and strong, nothing can
surpass it. --- Lao Tzu

___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers


Re: [Chicken-hackers] ##sys#double-number gone; intetional?

2013-03-04 Thread Christian Kellermann
* Christian Kellermann ck...@pestilenz.org [130304 15:11]:
 * Jörg F. Wittenberger joerg.wittenber...@softeyes.net [130304 14:57]:
  I found that ##sys#double-number is gone from library.scm .
  
  Still it's there in chicken.h .  Mistake or intended?
 
 Are you mixing up files? Or using a chicken.h from a previous build?
 In my version there is no trace of double-number in chicken.h
 (nor the rest of the repo).

Ah, but C_double_to_number is... sorry.

-- 
In the world, there is nothing more submissive and weak than
water. Yet for attacking that which is hard and strong, nothing can
surpass it. --- Lao Tzu

___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers


Re: [Chicken-hackers] ##sys#double-number gone; intetional?

2013-03-04 Thread Christian Kellermann
* Christian Kellermann ck...@pestilenz.org [130304 15:13]:
 * Christian Kellermann ck...@pestilenz.org [130304 15:11]:
  * Jörg F. Wittenberger joerg.wittenber...@softeyes.net [130304 14:57]:
   I found that ##sys#double-number is gone from library.scm .
   
   Still it's there in chicken.h .  Mistake or intended?
  
  Are you mixing up files? Or using a chicken.h from a previous build?
  In my version there is no trace of double-number in chicken.h
  (nor the rest of the repo).
 
 Ah, but C_double_to_number is... sorry.

Which is used for integer64 foreign types in code generation (c-backend.scm).
I am unconfused now and will stop mumbling.

Sorry for the noise.

-- 
In the world, there is nothing more submissive and weak than
water. Yet for attacking that which is hard and strong, nothing can
surpass it. --- Lao Tzu

___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers


Re: [Chicken-hackers] ##sys#double-number gone; intetional?

2013-03-04 Thread Moritz Heidkamp
Hi Jörg,

Jörg F. Wittenberger joerg.wittenber...@softeyes.net writes:
 I found that ##sys#double-number is gone from library.scm .

 Still it's there in chicken.h .  Mistake or intended?
 At least I'd consider it worth a news item.

the ##sys# API is not even documented so I don't think it needs to be
mentioned in the NEWS. In fact, AFIUI the point of identifiers having
that prefix (and ##core#) is that those can be changed without
considering backwards compatibility. Otherwise they could just be
exported without the prefix.

Moritz

___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers


Re: [Chicken-hackers] ##sys#double-number gone; intetional?

2013-03-04 Thread Peter Bex
On Mon, Mar 04, 2013 at 03:32:52PM +0100, Moritz Heidkamp wrote:
 Hi Jörg,
 
 Jörg F. Wittenberger joerg.wittenber...@softeyes.net writes:
  I found that ##sys#double-number is gone from library.scm .
 
  Still it's there in chicken.h .  Mistake or intended?
  At least I'd consider it worth a news item.
 
 the ##sys# API is not even documented so I don't think it needs to be
 mentioned in the NEWS. In fact, AFIUI the point of identifiers having
 that prefix (and ##core#) is that those can be changed without
 considering backwards compatibility. Otherwise they could just be
 exported without the prefix.

+1; you mess with internals, you get burned :)

Cheers,
Peter
-- 
http://www.more-magic.net

___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers


Re: [Chicken-hackers] ##sys#double-number gone; intetional?

2013-03-04 Thread Jörg F . Wittenberger

On Mar 4 2013, Peter Bex wrote:


On Mon, Mar 04, 2013 at 03:32:52PM +0100, Moritz Heidkamp wrote:

Hi Jörg,

Jörg F. Wittenberger joerg.wittenber...@softeyes.net writes:
 I found that ##sys#double-number is gone from library.scm .

 Still it's there in chicken.h .  Mistake or intended?
 At least I'd consider it worth a news item.

the ##sys# API is not even documented so I don't think it needs to be
mentioned in the NEWS. In fact, AFIUI the point of identifiers having
that prefix (and ##core#) is that those can be changed without
considering backwards compatibility. Otherwise they could just be
exported without the prefix.


+1; you mess with internals, you get burned :)


Thanks for that hint, helpful enough.

So how would I convert from a known-to-be integer to a fixnum?

BTW: Another question, how would I use chicken without messing
with the internals?



Cheers,
Peter



___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers


Re: [Chicken-hackers] ##sys#double-number gone; intetional?

2013-03-04 Thread Jörg F . Wittenberger

On Mar 4 2013, Christian Kellermann wrote:


* Jörg F. Wittenberger joerg.wittenber...@softeyes.net [130304 14:57]:

I found that ##sys#double-number is gone from library.scm .

Still it's there in chicken.h .  Mistake or intended?


Are you mixing up files? Or using a chicken.h from a previous build?
In my version there is no trace of double-number in chicken.h
(nor the rest of the repo).


In my version of chicken.h (untouched from git pull) there is at line 1305

#define C_a_double_to_num(ptr, n)   C_double_to_number(C_flonum(ptr, n))







___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers


Re: [Chicken-hackers] ##sys#double-number gone; intetional?

2013-03-04 Thread Jörg F . Wittenberger

Thanks a lot, this one seems to do the job.

On Mar 4 2013, Christian Kellermann wrote:


* Jörg F. Wittenberger joerg.wittenber...@softeyes.net [130304 14:57]:

I found that ##sys#double-number is gone from library.scm .

Still it's there in chicken.h .  Mistake or intended?
At least I'd consider it worth a news item.

What should I use instead?


It has been removed on Oct 4th with commit 
6e10dfb17175faa307a2a7230cf705c987af85c5


I guess an alternative would be to use inexact-exact?

Kind regards,

Christian




___
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers