2009/8/12 Job Vranish <jvran...@gmail.com>:
> Does anybody know if there is some unsafe IO function that would let me do
> destructive assignment?
> Something like:
>
> a = 5
> main = do
>   veryUnsafeAndYouShouldNeverEveryCallThisFunction_DestructiveAssign a 8
>   print a
>> 8

I doubt you will be able to achieve that in Haskell, but there is
another language which does support what you want which is very close
to Haskell. It is called Disciple, and there is a compiler for it
called DDC:

   http://www.haskell.org/haskellwiki/DDC

DDC is rather young, so it depends on what you are doing as to whether
it will fulfil all your needs.

Cheers,
Bernie.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to