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

Russel Winder russel at winder.org.uk
Sun May 27 15:28:56 UTC 2018

On Sun, 2018-05-27 at 13:10 +0000, 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, literally "const" but that can 
> change with other details)

Is there an easy set of "rules" as to when to use 'const' and when to use

In a situation where there are multiple ways of expressing the same concept
there needs to be idioms to guide people to do the right thing in a given

Dr Russel Winder     t:+44 20 7585 2200
41 Buckmaster Road   m:+44 7770 465 077
London SW11 1EN, UK  w: www.russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20180527/f961d229/attachment.sig>

More information about the Digitalmars-d-learn mailing list