<div class="gmail_quote">On Tue, Aug 31, 2010 at 23:49, dsimcha <span dir="ltr"><<a href="mailto:dsimcha@yahoo.com">dsimcha@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br><div class="h5"><br>
</div>Isn't this a core language feature that's in the spec but is only currently<br>
implemented for arrays? I thought eventually uniform function call syntax was<br>
coming for classes and structs, too.<br>
</blockquote></div><br>Yes I heard that too. But it will be at least a year coming, so I decided to roll my own :-)<br>I admit its utility is less that what I thought at first.<br>Now, I'm salivating over a recent proposal by Andrei to do lowering, allowing a void delegate() as the ast arg of a function to be written outside it. Which just shows I'm a fashion victim.<br>
<br>Ah, I have a mixin called Disable!(function names) that generates the @disabled versions of a class supertype. Could that be useful?<br><br>I also have a template that gets the list of all members of an aggregate type (classes, structs and, well, modules, in a way), even the constructors, even the overloaded members, separated by type, and list them with their names and associated type. It even gets the types aliases and unittests, though I don't know what to do with the latter. That was part of a project to duplicate a type: generate a new type with this extracted info. I had vague projects to transform the methods into their const equivalent for example or to render the fields immutable, but didn't get that far. Would that be interesting to someone?<br>
<br><br>