You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn't supported:
```import std.stdio;void main(){ struct MyStruct { static void doIt(string thing) { writeln(thing); } } with(MyStruct) { "print me".doIt(); }}```
Does it make sense for it to be supported? I've got a use case for it that deals with letting the user supply their own struct with custom static methods on it, with the struct acting as a "wrapper" for loose functions.
The text was updated successfully, but these errors were encountered:
Dylan Knutson (@dymk) reported this on 2014-01-02T15:16:45Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=11860
Description
The text was updated successfully, but these errors were encountered: