Top Graphic
Ikayzo.org LogoHomeMissionCriteriaPeopleNews
EnglishJapanese

What's New
SDL
08.11.05 SDL is voted in by the review board.

Ikayzo.org Launch
06.24.05 Ikayzo.org, a global professional open source community is launched!

Beanshell
06.10.05 Beanshell joins BeanShell on the Ikayzo.org project list.
OSS Sites
Other great open source sites
  SourceForge
  CodeHaus
Discussion: FW: Couple of things

FW: Couple of things

Daniel Leuck
Mon Nov 13 09:38:27 HST 2006


So you vote for #2?  Does anyone else have an opinion?

 

BTW- I included decimal because two of our users in the finance sector
wanted a type accurate enough to handle currency.  In Java this means
BigDecimal.  In C# "decimal" is used.

 

  _____  

From: Jesse Weaver [mailto:pianohacker at gmail.com] 
Sent: Monday, November 13, 2006 8:52 AM
To: sdl-developers at ikayzo.org
Subject: Re: FW: Couple of things

 

 

On 11/13/06, Daniel Leuck <dan at ikayzo.com> wrote:

Hi Jesse,

 

The Mono issue appears to be a bug with the Mono compiler (those two
interface methods are not ambiguous), but I will look into what can be done.


Re: I would think that a 32-bit integer and a 64-bit floating point would be
enough.

 

The two options I would consider are:

1.	Make the 128 bit decimal type an optional feature.
2.	Redefine decimal as the most accurate decimal type available on the
platform.

 

I am leaning strongly towards one because I don't like the notion of
something having significantly different meaning on different platforms.
Any objections?

 

Dan

 


Well, there is one problem: right now, Java and C# support the 128-bit
number, and C++ won't. This effectively means that we'll have two versions
of the SDL language. Since the decimal type is probably only needed for
special uses, this should be okay, but it could lead to problems down the
road. 

-- 
Jesse

-----------
There is a theory which states that if anybody ever discovers exactly what
the Universe is for and why it is here, it will instantly disappear and be
replaced by something even more bizarre and inexplicable. There is another
theory which states that this has already happened. - Douglas Adams, author
of Hitchhiker's Guide to the Galaxy 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ml.ikayzo.org/pipermail/sdl-developers/attachments/20061113/6616dfaa/attachment.htm>


Query: [How to search]

Display: Description: Sort: