[Haskell-cafe] Re: Wikipedia on first-class object
Cristian Baboi
cristi at ot.onrc.ro
Mon Dec 31 04:51:00 EST 2007
On Mon, 31 Dec 2007 11:14:39 +0200, Achim Schneider <barsoap at web.de> wrote:
> "Cristian Baboi" <cristi at ot.onrc.ro> wrote:
>
>> On Mon, 31 Dec 2007 10:59:28 +0200, Achim Schneider <barsoap at web.de>
>> wrote:
>> I could have written this instead:
>>
>> a :: Something
>> a = a
>>
>> Which is nicer than undefined.
> ksf at solaris ~ % ghci
> GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help
> Loading package base ... linking ... done.
> Prelude> let a = undefined
> Prelude> a
> *** Exception: Prelude.undefined
> Prelude> let a = a
> Prelude> a
> Interrupted.
> nope, it isn't.
If you try it again
Prelude> a
*** Exception: Stack overflow
________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Servers.
part000.txt - is OK
http://www.eset.com
More information about the Haskell-Cafe
mailing list