Re: What's the purpose of the 'in' keyword ?

2018-05-30 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, May 30, 2018 22:16:28 aberba via Digitalmars-d-learn wrote: > On Sunday, 27 May 2018 at 16:00:15 UTC, Jonathan M Davis wrote: > > On Sunday, May 27, 2018 16:28:56 Russel Winder via > > > > Digitalmars-d-learn wrote: > >> On Sun, 2018-05-27 at 13:10 +, Adam D. Ruppe via > >>

Re: What's the purpose of the 'in' keyword ?

2018-05-30 Thread Jonathan M Davis via Digitalmars-d-learn
On Wednesday, May 30, 2018 15:28:53 Ali Çehreli via Digitalmars-d-learn wrote: > On 05/30/2018 03:16 PM, aberba wrote: > > On Sunday, 27 May 2018 at 16:00:15 UTC, Jonathan M Davis wrote: > >> On Sunday, May 27, 2018 16:28:56 Russel Winder via Digitalmars-d-learn > >> > >> wrote: > >>> On Sun,

Re: What's the purpose of the 'in' keyword ?

2018-05-30 Thread Ali Çehreli via Digitalmars-d-learn
On 05/30/2018 03:16 PM, aberba wrote: On Sunday, 27 May 2018 at 16:00:15 UTC, Jonathan M Davis wrote: On Sunday, May 27, 2018 16:28:56 Russel Winder via Digitalmars-d-learn wrote: On Sun, 2018-05-27 at 13:10 +, Adam D. Ruppe via Digitalmars-d-learn - Jonathan M Davis Jonathan, which

Re: What's the purpose of the 'in' keyword ?

2018-05-30 Thread aberba via Digitalmars-d-learn
On Sunday, 27 May 2018 at 16:00:15 UTC, Jonathan M Davis wrote: On Sunday, May 27, 2018 16:28:56 Russel Winder via Digitalmars-d-learn wrote: On Sun, 2018-05-27 at 13:10 +, Adam D. Ruppe via Digitalmars-d-learn - Jonathan M Davis Jonathan, which font were you using in your DConf

Re: What's the purpose of the 'in' keyword ?

2018-05-30 Thread Q. Schroll via Digitalmars-d-learn
On Sunday, 27 May 2018 at 16:00:15 UTC, Jonathan M Davis wrote: [...] Honestly, I'd suggest that folks never use in at this point. There's zero benefit to it. [...] Exactly. If you intend const, just write const. If you intend const scope, write const scope.

Re: What's the purpose of the 'in' keyword ?

2018-05-28 Thread eastanon via Digitalmars-d-learn
On Sunday, 27 May 2018 at 16:00:15 UTC, Jonathan M Davis wrote: On Sunday, May 27, 2018 16:28:56 Russel Winder via Digitalmars-d-learn wrote: [...] Honestly, I'd suggest that folks never use in at this point. There's zero benefit to it. In principle, in was supposed to be const scope, but

Re: What's the purpose of the 'in' keyword ?

2018-05-27 Thread Jonathan M Davis via Digitalmars-d-learn
On Sunday, May 27, 2018 16:28:56 Russel Winder via Digitalmars-d-learn wrote: > On Sun, 2018-05-27 at 13:10 +, Adam D. Ruppe via Digitalmars-d-learn > > wrote: > > On Sunday, 27 May 2018 at 13:02:23 UTC, loloof64 wrote: > > > What's the purpose of this 'in' keywo

Re: What's the purpose of the 'in' keyword ?

2018-05-27 Thread Russel Winder via Digitalmars-d-learn
On Sun, 2018-05-27 at 13:10 +, Adam D. Ruppe via Digitalmars-d-learn wrote: > On Sunday, 27 May 2018 at 13:02:23 UTC, loloof64 wrote: > > What's the purpose of this 'in' keyword ? I could not process a > > good Google request to get an answer. > > It means you are

Re: What's the purpose of the 'in' keyword ?

2018-05-27 Thread Adam D. Ruppe via Digitalmars-d-learn
On Sunday, 27 May 2018 at 13:02:23 UTC, loloof64 wrote: What's the purpose of this 'in' keyword ? I could not process a good Google request to get an answer. It means you are taking the parameter in to look at, but not modify or store. Basically "const". (well, for now, litera

Re: What's the purpose of the 'in' keyword ?

2018-05-27 Thread loloof64 via Digitalmars-d-learn
://sites.google.com/site/gtkdtutorial/#chapter2 : in section 3 for Buttons and Callbacks, main.d snippet). What's the purpose of this 'in' keyword ? I could not process a good Google request to get an answer. Regards https://dlang.org/spec/function.html#parameters Thank you very much : I'm

Re: What's the purpose of the 'in' keyword ?

2018-05-27 Thread rikki cattermole via Digitalmars-d-learn
for Buttons and Callbacks, main.d snippet). What's the purpose of this 'in' keyword ? I could not process a good Google request to get an answer. Regards https://dlang.org/spec/function.html#parameters

What's the purpose of the 'in' keyword ?

2018-05-27 Thread loloof64 via Digitalmars-d-learn
). What's the purpose of this 'in' keyword ? I could not process a good Google request to get an answer. Regards