|
Re: Re: Begginer question: msg#00061lang.haskell.cafe
On Thu, 6 Jan 2005 karczma@xxxxxxxxxxxxxxx wrote: > Actually this is not a "conversion", but an overloading of numerical > constants. The lexical entity "4" behaves as "fromInteger 4", and the > type checker uses the fromInteger appropriate to the context. Floating, > Complex, etc. With 4.0 it will work also (overloaded fromRational). Though I think the syntax should distinguish between the polymorphic value '4' and the bare integer from which it is convert, say '#4', that is '4 = fromInteger #4'. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Begginer question: 00061, Jules Bean |
|---|---|
| Next by Date: | Re: Begginer question: 00061, Maurício |
| Previous by Thread: | Re: Begginer questioni: 00061, karczma |
| Next by Thread: | Re: Re: Begginer question: 00061, Jules Bean |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |