October 02, 2013 Re: std.plugin ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | On Wednesday, 2 October 2013 at 01:31:42 UTC, Martin Nowak wrote:
> On 09/30/2013 10:53 PM, FreeSlave wrote:
>> I'm currenly working on such module now. Here it is
>> https://bitbucket.org/FreeSlave/dido
>
> https://github.com/D-Programming-Language/druntime/pull/617
> http://dconf.org/talks/nowak.html
Yeah, that was video I inspired from. Well, seems my work was needless... Anyway where is it better to contribute - here or on github?
About the base class - user still needs to cast Object returned by ClassInfo to appropriate interface otherwise she can't get functionality of loaded class. Also I assume ClassInfo can't create instances of C++ classes. Though I'm not sure if standard D library should have this capability.
Ok, I looked your implementation on github. Are you sure we don't need to use exceptions instead of just returning null? I believe as library does not export required function it's definitely some kind of critical error and can't be omitted.
|
October 02, 2013 Re: std.plugin ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Martin Nowak | On 2013-10-02 03:39, Martin Nowak wrote: > This will work on master but we still lack support for looking up > classes within a specific library, after all you can have two different > implementations with the same name in two different libraries (plugins). What happens then, it just picks the first one? -- /Jacob Carlborg |
October 02, 2013 Re: std.plugin ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to FreeSlave | On Oct 1, 2013, at 7:36 PM, FreeSlave <freeslave93@gmail.com> wrote:
> On Wednesday, 2 October 2013 at 01:31:42 UTC, Martin Nowak wrote:
>> On 09/30/2013 10:53 PM, FreeSlave wrote:
>>> I'm currenly working on such module now. Here it is https://bitbucket.org/FreeSlave/dido
>>
>> https://github.com/D-Programming-Language/druntime/pull/617 http://dconf.org/talks/nowak.html
>
> Yeah, that was video I inspired from. Well, seems my work was needless... Anyway where is it better to contribute - here or on github?
If you're going to contribute, I suggest joining the appropriate mailing list. You'll be less likely to duplicate effort if you're watching that discussion.
|
Copyright © 1999-2021 by the D Language Foundation