Re: [racket] Pass by value/name/reference

2014-07-21 Thread Jos Koot
en > Cc: Racket Users > Subject: Re: [racket] Pass by value/name/reference > > > Matthias Felleisen wrote at 07/21/2014 09:10 AM: > > call-by-value/pass-by-worth > > Especially since Pascal was the first place that I was exposed to > different kinds of ca

Re: [racket] Pass by value/name/reference

2014-07-21 Thread Neil Van Dyke
Matthias Felleisen wrote at 07/21/2014 09:10 AM: call-by-value/pass-by-worth Especially since Pascal was the first place that I was exposed to different kinds of calling conventions, I've been waiting for this thread to mention some version of the Niklaus Wirth joke: Whereas Europeans

Re: [racket] Pass by value/name/reference

2014-07-21 Thread Matthias Felleisen
On Jul 21, 2014, at 1:52 AM, קוראל אלימלך wrote: > Thank U very much, > Our project is about "programming language principle". during the semester we > have been programming a compiler for Jack language in racket, > and now we need to make a presentation on Racket language that includes all >

Re: [racket] Pass by value/name/reference

2014-07-21 Thread Matthias Felleisen
Oops, I have to reply to myself. Matthew correctly reminded me that it is call-by-value/pass-by-worth what I mean for Racket and Java not .../pass-by-reference. Sorry for the confusion. On Jul 20, 2014, at 6:27 PM, Matthias Felleisen wrote: > > call-by is a notion of time, pass-by ref

Re: [racket] Pass by value/name/reference

2014-07-20 Thread קוראל אלימלך
Thank U very much, Our project is about "programming language principle". during the semester we have been programming a compiler for Jack language in racket, and now we need to make a presentation on Racket language that includes all information about the principle that we learned. 2014-07-21 5:

Re: [racket] Pass by value/name/reference

2014-07-20 Thread Matthias Felleisen
On Jul 20, 2014, at 9:25 PM, Jon Zeppieri wrote: > On Sun, Jul 20, 2014 at 6:27 PM, Matthias Felleisen > wrote: >> >> The phrase "call-by-value is a reduction strategy" has no meaning per se but >> is a left over from the time when people hadn't figured out the above (pre >> 1070). >> > > I

Re: [racket] Pass by value/name/reference

2014-07-20 Thread Jon Zeppieri
On Sun, Jul 20, 2014 at 6:27 PM, Matthias Felleisen wrote: > > The phrase "call-by-value is a reduction strategy" has no meaning per se but > is a left over from the time when people hadn't figured out the above (pre > 1070). > I apologize for spreading this nonsense. Is it the phrase "reductio

Re: [racket] Pass by value/name/reference

2014-07-20 Thread Matthias Felleisen
call-by is a notion of time, pass-by refers to entity that is used (location if you so will). You can create a 2-dimension table of these options and you'll be able to find some language for almost any cell in this table. The common meaning of call-by-value is call-by-value/pass-by-reference.

Re: [racket] Pass by value/name/reference

2014-07-20 Thread Jon Zeppieri
On Sun, Jul 20, 2014 at 5:02 AM, קוראל אלימלך wrote: > Hey :) > How the arguments are passed in racket? > by value/ reference/name? > > If u can add an example it will b good :) > Thank U ! > I suspect two different things are being conflated here: 1. the reduction semantics of the language 2. t

Re: [racket] Pass by value/name/reference

2014-07-20 Thread Jos Koot
Be aware there is also a lazy racket (#lang lazy) #lang racket ; call by value (define (show x) (display x) (newline) x) (define (plus x y z) (display "now we are in the procedure\n") (+ x y z)) "the procedure has been defined" (plus (show 1) (show 2) (show 3) ) "the proceedure has been calle

Re: [racket] Pass by value/name/reference

2014-07-20 Thread קוראל אלימלך
thank u :) but we didn't understand if the arguments are passed by value or reference? we think that it passed by value, and if we use with pointers it can pass by refernce. another question, if we use let function, the argument is passed by name? thank u very much! 2014-07-20 13:09 GMT+03:00

Re: [racket] Pass by value/name/reference

2014-07-20 Thread Jos Koot
See section 4.3.1 of the Racket guide. Jos _ From: users [mailto:users-boun...@racket-lang.org] On Behalf Of ? ?? Sent: domingo, 20 de julio de 2014 11:03 To: users@racket-lang.org Subject: [racket] Pass by value/name/reference Hey :) How the arguments are passed in racket? by