On Thursday, 18 December 2014 at 02:45:01 UTC, Adam D. Ruppe wrote:
D doesn't have a really clean separation between static and non-static methods.

hmm.. i thought that's what 'static' is for.

It sees an opCall and thinks you're trying to call it, but since it isn't static, it complains you don't have a this.

so it's bug i should report or some idiosyncracy?

I don't think UFCS works with structs nor local variables anyway, so this error makes sense to me.

i guess i should request this. in my other code i use a struct to represent a transformation so it makes perfect sense to use it in UFCS fashion.

Reply via email to