[nem-bug] [Nemerle 0000834]: Derive floating point literal's type from its precision

feedback at nemerle.org feedback at nemerle.org
Sun Jan 21 22:18:44 CET 2007


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=834> 
======================================================================
Reported By:                AstralStorm
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   834
Category:                   Language Feature
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             01-21-2007 22:18 CET
Last Modified:              01-21-2007 22:18 CET
======================================================================
Summary:                    Derive floating point literal's type from its
precision
Description: 
Currently, floating point literals are always of type System.Double.
This makes them awkward to use as parameters to many functions accepting
System.Single (AKA float), as System.Double is not convertible to
System.Single
(the other way around the conversion is possible)

In my opinion, the literal should be the "smallest" type having required
precision.
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
01-21-07 22:18 AstralStorm    New Issue                                    
======================================================================




More information about the bugs mailing list