Re: Transmitting parameters

2001-11-02 Thread Wolfgang Jeltsch
On Friday, 2 November 2001 07:10 Raul Sierra Alcocer wrote: > Hi, > > What mechanism of transmiting parameters does Haskell implement? > > Thank you, > Raul Anyway, it does not make sense to distinct between call-by-value and call-by-reference in the traditional way since variables cannot be mod

Re: Transmitting parameters

2001-11-02 Thread Lennart Augustsson
> >> >What mechanism of transmiting parameters does Haskell implement? > >> > >> By value. > > > >Yes, though one might equally say that they are passed by > >reference, since in > > > > Oh, yeah, they're passed by thunk. I forgot about the laziness. Well, Haskell does not really specify which

Re: Transmitting parameters

2001-11-02 Thread Ashley Yakeley
At 2001-11-02 02:21, Jon Fairbairn wrote: >> >What mechanism of transmiting parameters does Haskell implement? >> >> By value. > >Yes, though one might equally say that they are passed by >reference, since in > >g = let f x = x+x >z = factorial 1000 > in f z * z > >the 'first' instan

Re: Transmitting parameters

2001-11-02 Thread Jon Fairbairn
> At 2001-11-01 22:10, raul sierra alcocer wrote: > > >What mechanism of transmiting parameters does Haskell implement? > > By value. Yes, though one might equally say that they are passed by reference, since in g = let f x = x+x z = factorial 1000 in f z * z the 'first' instance

Re: Transmitting parameters

2001-11-02 Thread Ashley Yakeley
At 2001-11-01 22:10, raul sierra alcocer wrote: >What mechanism of transmiting parameters does Haskell implement? By value. -- Ashley Yakeley, Seattle WA ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell

Transmitting parameters

2001-11-01 Thread raul sierra alcocer
Hi, What mechanism of transmiting parameters does Haskell implement? Thank you, Raul ___ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell