Re: Problems with Reflection in Static library

2010-12-20 Thread Stanislav Blinov
19.12.2010 10:51, Mandeep Singh Brar пишет: Thanks a lot for your reply Tomek. I understand what you are saying but this would not work for me. The reason is that i am trying to make some kind of plugins from these libs. So i would not know the name objectFactory also in advance (multiple plugins

Re: Problems with Reflection in Static library

2010-12-18 Thread Mandeep Singh Brar
Thanks a lot for your reply Tomek. I understand what you are saying but this would not work for me. The reason is that i am trying to make some kind of plugins from these libs. So i would not know the name objectFactory also in advance (multiple plugins will not be implementing the same named metho

Re: Problems with Reflection in Static library

2010-12-18 Thread Kagamin
Mandeep Singh Brar Wrote: > The Object.factory method does not seem to work if my class has been compiled > as a static library. > Can you please let me know how to solve this. I have tried replacing public > with export for class > testD, but that does not help. The class A is not referenced f

Re: Problems with Reflection in Static library

2010-12-18 Thread spir
On Sat, 18 Dec 2010 13:07:41 +0100 Tomek Sowiński wrote: > BTW, am I the only one to think Object.factory is a bad name? It doesn't > return a factory. Sure, one can get used to it, but why not Object.make or > .create or .instance? You're not the only one ;-) Similar to index(ing) not returni

Re: Problems with Reflection in Static library

2010-12-18 Thread Tomek Sowiński
Mandeep Singh Brar napisał: > I have a class A in module testD as follows > > module testD; > import std.stdio; > public class A { > public this() { > writeln("const"); > } > public void a(string l, int k) { > writeln("Hello B.a", l, k); > } > }

Problems with Reflection in Static library

2010-12-17 Thread Mandeep Singh Brar
Hi, Please excuse for a longish mail, but i am putting the complete question. I have a class A in module testD as follows module testD; import std.stdio; public class A { public this() { writeln("const"); } public void a(string l, int k) {