Re: String mixin from within a template

2020-08-23 Thread data pulverizer via Digitalmars-d-learn
On Sunday, 23 August 2020 at 21:13:51 UTC, ag0aep6g wrote: On Sunday, 23 August 2020 at 20:54:22 UTC, data pulverizer wrote: compiled string 1: alias x0 = Remove(indicies[i] - i, Args); Error: found - when expecting ) Error: semicolon expected to close alias declaration Error: no identifier for

Re: String mixin from within a template

2020-08-23 Thread ag0aep6g via Digitalmars-d-learn
On Sunday, 23 August 2020 at 20:54:22 UTC, data pulverizer wrote: compiled string 1: alias x0 = Remove(indicies[i] - i, Args); Error: found - when expecting ) Error: semicolon expected to close alias declaration Error: no identifier for declarator i Error: declaration expected, not , ... repeated

Re: String mixin from within a template

2020-08-23 Thread data pulverizer via Digitalmars-d-learn
On Sunday, 23 August 2020 at 20:12:12 UTC, ag0aep6g wrote: On Sunday, 23 August 2020 at 19:42:47 UTC, data pulverizer wrote: `alias x` ~ i ~ ` = Remove(indexes[i] - i, x`~ (i - 1) ~ `);` [...] ```d Error: no identifier for declarator x ``` Indicating that the concatenation `~` is not working,

Re: String mixin from within a template

2020-08-23 Thread ag0aep6g via Digitalmars-d-learn
On Sunday, 23 August 2020 at 19:42:47 UTC, data pulverizer wrote: `alias x` ~ i ~ ` = Remove(indexes[i] - i, x`~ (i - 1) ~ `);` [...] ```d Error: no identifier for declarator x ``` Indicating that the concatenation `~` is not working, and I only get the partial string when I print out `pragma