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
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
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
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
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);
> }
> }
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) {