On Sat, 22 Oct 2011 16:35:57 +0300, Alex Rønne Petersen <[email protected]> wrote:

On 22-10-2011 15:20, Andrej Mitrovic wrote:
On 10/22/11, Vladimir Panteleev<[email protected]>  wrote:
On Sat, 22 Oct 2011 13:50:32 +0300, Alex Rønne Petersen
<[email protected]>  wrote:

You could just introduce a -reflection switch to include reflection
information.

As I mentioned in the previous thread on the subject, I think that ideally
we should improve compile-time reflection so it's possible to generate
runtime reflection information at compilation time. Something like this:

import reflection;

enum reflectionForStdStdio = generateReflectionForModule("std.stdio");

void main()
{
      reflectionForStdStdio.callFunction("writeln", "Hello, world!");
}

--
Best regards,
Vladimir mailto:[email protected]


I think user properties would be a perfect fit for this. :)

@reflected
struct Foo {}

The only downside with either approach

What do you mean by "either approach"? Which is the other one?

--
Best regards,
 Vladimir                            mailto:[email protected]

Reply via email to