Hello Colin,
In cluster math/decimal there is a class MA_DECIMAL_HANDLER whose purpose=
is to allow descendants to have access to MA_DECIMAL internals.
You could make XM_XPATH_DECIMAL_VALUE inherit from MA_DECIMAL_HANDLER.
{MA_DECIMAL}.coefficient sould be exported to MA_DECIMAL_HANDLER.
> I am not sure if doing this adds an unwanted cluster dependency or not=0D
> (I have a vague memory that ECMA miht have changed the rules in this=
area).=0D
> If it does introduce a dependency, then instead coefficient will need=
exporting to ANY.
It should not introduce a dependency. As a matter of taste, I do not like=
reading "unknown" class names in a library, especially if I did not=
include those classes in my system.
Best regards,
Paul G. Crismer
-----Original Message-----
From: gob...@li...=
[mailto:gob...@li...] On Behalf Of=
Colin Paul Adams
Sent: lundi 6 ao=FBt 2007 6:57
To: gob...@li...
Subject: [gobo-eiffel-develop] Export status and cluster dependencies
In order to create the XPath string value of an xs:decimal value correctly=
(no exponential notation, and no NaNs or infinities), I copied and edited=
the code for {MA_DECIMAL}.to_string_general into XM_XPATH_DECIMAL_VALUE.
In order for it to compile, I had to add XM_XPATH_DECIMAL_VALUE to the list=
of classes to which {MA_DECIMAL}.coefficient is exported.
I am not sure if doing this adds an unwanted cluster dependency or not (I=
have a vague memory that ECMA miht have changed the rules in this area).=
If it does introduce a dependency, then instead coefficient will need=
exporting to ANY.
I haven't checked this code in.
--
Colin Adams
Preston Lancashire
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/=
_______________________________________________
gobo-eiffel-develop mailing list
gob...@li...
https://lists.sourceforge.net/lists/listinfo/gobo-eiffel-develop
***** Disclaimer *****
http://www.groupes.be/1_mail-disclaimer.htm
|