Unencumbered V0.1.2: Write Cucumber step definitions in D

Dicebot via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Apr 25 04:24:01 PDT 2014


On Friday, 25 April 2014 at 11:11:18 UTC, Atila Neves wrote:
> Is there any other way to achieve @Given("regexp") that also 
> gets passed in the line number automatically without the 
> template param? If so I'll glady use it, if not I think Rikki's 
> solution seems to be the simplest so far.
>
> Atila

Just change struct constructor back to
     this(string s, ulong l = __LINE__) {
in Riki's snippet


More information about the Digitalmars-d-announce mailing list