Re: Package permission and symbol resolution

2014-04-23 Thread Marco Leise via Digitalmars-d
Am Tue, 22 Apr 2014 18:07:21 +1000 schrieb Manu via Digitalmars-d digitalmars-d@puremagic.com: extern (C) void func(const(char)* pString); By the way: What about adding nothrow there? -- Marco

Package permission and symbol resolution

2014-04-22 Thread Manu via Digitalmars-d
So I've restructured one of my projects which is a C library bindings, but also with some D-ification. I separated it into 2 parts, the raw binding parts, and the api enhancements, the module structure looks like this: The Raw C binding part: pkg/c/module.d: pkg.c.module; struct

Re: Package permission and symbol resolution

2014-04-22 Thread Manu via Digitalmars-d
On 22 April 2014 18:07, Manu turkey...@gmail.com wrote: So I've restructured one of my projects which is a C library bindings, but also with some D-ification. I separated it into 2 parts, the raw binding parts, and the api enhancements, the module structure looks like this: The Raw C

Re: Package permission and symbol resolution

2014-04-22 Thread John Colvin via Digitalmars-d
On Tuesday, 22 April 2014 at 08:07:32 UTC, Manu via Digitalmars-d wrote: So I've restructured one of my projects which is a C library bindings, but also with some D-ification. I separated it into 2 parts, the raw binding parts, and the api enhancements, the module structure looks like this:

Re: Package permission and symbol resolution

2014-04-22 Thread Manu via Digitalmars-d
On 22 April 2014 19:16, John Colvin via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 22 April 2014 at 08:07:32 UTC, Manu via Digitalmars-d wrote: So I've restructured one of my projects which is a C library bindings, but also with some D-ification. I separated it into 2

Re: Package permission and symbol resolution

2014-04-22 Thread Manu via Digitalmars-d
On 22 April 2014 21:00, Manu turkey...@gmail.com wrote: On 22 April 2014 19:16, John Colvin via Digitalmars-d The rest of your problems are, I think, explained here: http://dlang.org/hijack.html Ah ha! in order to overload functions from multiple modules together, an alias statement is used