digitalmars.D.learn - How to explicitly state the expression in with(...)?
- =?iso-8859-1?Q?Robert_M._M=FCnch?= (15/15) Feb 01 2020 I have quite often this pattern:
I have quite often this pattern: with(x.y.z){ xyzFunc(); // = x.y.z.xyzFunc() myFunc(x.y.z, ...); } and it would be cool to write: with(t = x.y.z){ // work like an implicit alias xyzFunc(); // = x.y.z.xyzFunc() myFunc(t, ...); } Is there anything which comes near this idea? -- Robert M. Münch http://www.saphirion.com smarter | better | faster
Feb 01 2020