View mode: basic / threaded / horizontal-split · Log in · Help
January 29, 2012
Should export be stripped by the .di generator?
I'm wondering if the export keyword should be stripped by the .di 
generator of dmd or not.
Lets say DLL 2 imports DLL 1s import files. Will that not cause DLL 2 to 
also export the the symbols of DLL 1?

How much wanted is a dll version of druntime and phobos?

Kind Regards
Ingrater
January 29, 2012
Re: Should export be stripped by the .di generator?
export on a function declaration means dllimport for exactly that purpose  
(.di files).
It's not mentioned at the attributes doc site but I'm sure I read it  
somewhere else.
January 31, 2012
Re: Should export be stripped by the .di generator?
On Sun, 29 Jan 2012 04:43:58 -0800, Trass3r <un@known.com> wrote:

> export on a function declaration means dllimport for exactly that  
> purpose (.di files).
> It's not mentioned at the attributes doc site but I'm sure I read it  
> somewhere else.

Walter has said as much in various posts on the NG's here and thats about  
as far as the docs for it got. DI files are a bit of a mess currently and  
my clean-up patch breaks DMD when building druntime and phobos. I need  
Walter's help in figuring out WHY it's breaking, but getting a hold of him  
is like trying to catch a ghost!

-- 
Adam Wilson
Project Coordinator
The Horizon Project
http://www.thehorizonproject.org/
January 31, 2012
Re: Should export be stripped by the .di generator?
On 1/31/12 11:49 AM, Adam Wilson wrote:
> On Sun, 29 Jan 2012 04:43:58 -0800, Trass3r <un@known.com> wrote:
>
>> export on a function declaration means dllimport for exactly that
>> purpose (.di files).
>> It's not mentioned at the attributes doc site but I'm sure I read it
>> somewhere else.
>
> Walter has said as much in various posts on the NG's here and thats
> about as far as the docs for it got. DI files are a bit of a mess
> currently and my clean-up patch breaks DMD when building druntime and
> phobos. I need Walter's help in figuring out WHY it's breaking, but
> getting a hold of him is like trying to catch a ghost!

Did you email him and didn't get a reply? Catching his attention with a 
newsgroup post may or may not work.

Andrei
February 01, 2012
Re: Should export be stripped by the .di generator?
On Tue, 31 Jan 2012 14:53:17 -0800, Andrei Alexandrescu  
<SeeWebsiteForEmail@erdani.org> wrote:

> On 1/31/12 11:49 AM, Adam Wilson wrote:
>> On Sun, 29 Jan 2012 04:43:58 -0800, Trass3r <un@known.com> wrote:
>>
>>> export on a function declaration means dllimport for exactly that
>>> purpose (.di files).
>>> It's not mentioned at the attributes doc site but I'm sure I read it
>>> somewhere else.
>>
>> Walter has said as much in various posts on the NG's here and thats
>> about as far as the docs for it got. DI files are a bit of a mess
>> currently and my clean-up patch breaks DMD when building druntime and
>> phobos. I need Walter's help in figuring out WHY it's breaking, but
>> getting a hold of him is like trying to catch a ghost!
>
> Did you email him and didn't get a reply? Catching his attention with a  
> newsgroup post may or may not work.
>
> Andrei
>

Hmm, I didn't know we could do that, and I don't have his email, not that  
I can blame him for not giving it out. The one he uses to post to the NG's  
looks like an unmonitored address. You can send an email to the address I  
use here with his email. I would like to get this pulled into the  
mainline. :-)

-- 
Adam Wilson
Project Coordinator
The Horizon Project
http://www.thehorizonproject.org/
February 01, 2012
Re: Should export be stripped by the .di generator?
On 1/31/12 5:05 PM, Adam Wilson wrote:
> On Tue, 31 Jan 2012 14:53:17 -0800, Andrei Alexandrescu
> <SeeWebsiteForEmail@erdani.org> wrote:
>
>> On 1/31/12 11:49 AM, Adam Wilson wrote:
>>> On Sun, 29 Jan 2012 04:43:58 -0800, Trass3r <un@known.com> wrote:
>>>
>>>> export on a function declaration means dllimport for exactly that
>>>> purpose (.di files).
>>>> It's not mentioned at the attributes doc site but I'm sure I read it
>>>> somewhere else.
>>>
>>> Walter has said as much in various posts on the NG's here and thats
>>> about as far as the docs for it got. DI files are a bit of a mess
>>> currently and my clean-up patch breaks DMD when building druntime and
>>> phobos. I need Walter's help in figuring out WHY it's breaking, but
>>> getting a hold of him is like trying to catch a ghost!
>>
>> Did you email him and didn't get a reply? Catching his attention with
>> a newsgroup post may or may not work.
>>
>> Andrei
>>
>
> Hmm, I didn't know we could do that, and I don't have his email, not
> that I can blame him for not giving it out.

Google for <<Walter Bright email>>. First thing is his homepage. First 
button on his homepage reads "Send email to Walter Bright". And that 
doesn't work. Walter please fix that.

> The one he uses to post to
> the NG's looks like an unmonitored address. You can send an email to the
> address I use here with his email. I would like to get this pulled into
> the mainline. :-)

Sent.


Andrei
February 01, 2012
Re: Should export be stripped by the .di generator?
On Tue, 31 Jan 2012 20:49:33 +0100, Adam Wilson <flyboynw@gmail.com> wrote:

> On Sun, 29 Jan 2012 04:43:58 -0800, Trass3r <un@known.com> wrote:
>
>> export on a function declaration means dllimport for exactly that  
>> purpose (.di files).
>> It's not mentioned at the attributes doc site but I'm sure I read it  
>> somewhere else.
>
> Walter has said as much in various posts on the NG's here and thats  
> about as far as the docs for it got. DI files are a bit of a mess  
> currently and my clean-up patch breaks DMD when building druntime and  
> phobos. I need Walter's help in figuring out WHY it's breaking, but  
> getting a hold of him is like trying to catch a ghost!
>

Where is the code? I might have a look through it.
February 01, 2012
Re: Should export be stripped by the .di generator?
On Tue, 31 Jan 2012 18:15:51 -0800, Martin Nowak <dawg@dawgfoto.de> wrote:

> On Tue, 31 Jan 2012 20:49:33 +0100, Adam Wilson <flyboynw@gmail.com>  
> wrote:
>
>> On Sun, 29 Jan 2012 04:43:58 -0800, Trass3r <un@known.com> wrote:
>>
>>> export on a function declaration means dllimport for exactly that  
>>> purpose (.di files).
>>> It's not mentioned at the attributes doc site but I'm sure I read it  
>>> somewhere else.
>>
>> Walter has said as much in various posts on the NG's here and thats  
>> about as far as the docs for it got. DI files are a bit of a mess  
>> currently and my clean-up patch breaks DMD when building druntime and  
>> phobos. I need Walter's help in figuring out WHY it's breaking, but  
>> getting a hold of him is like trying to catch a ghost!
>>
>
> Where is the code? I might have a look through it.

My patch is here: git://github.com/LightBender/dmd.git For testing you can  
try to build the latest druntime.

-- 
Adam Wilson
Project Coordinator
The Horizon Project
http://www.thehorizonproject.org/
Top | Discussion index | About this forum | D home