www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Benjamin Thaut's talk: D's Import and Export Business

reply Andre Pany <andre s-e-a-p.de> writes:
Hi,

after looking Benjamins talk I took some time to think about it.
Benjamin made some effort towards a sophisticated DLL suppport 
for D.

What I understand: He won't push his changes until "export" will 
become an attribute.
But without his changes there is no need to change the semantic 
of "export".
It seems like a deadlock.

I tried to find a solution to this problem. For the moment I 
ignore the export issue
and have a look at linux. I understand in linux everything is 
exported by default.
If it is decided, that this default behavior is changed in the 
long term,
there needs to be a way to switch batch to the old behavior.
Therefore a compiler switch "exportAll" will be necessary.

So why do not start with this compiler switch, which will also
export all symbols on windows.
If the changes of Benjamin are adapted to this switch we can 
already get the sophisticated
dll support and can later decide on the semantic change of export.

Does this make sense?

Kind regards
André
May 19 2016
parent reply flamencofantasy <flamencofantasy gmail.com> writes:
On Thursday, 19 May 2016 at 14:00:54 UTC, Andre Pany wrote:
 Hi,

 after looking Benjamins talk I took some time to think about it.
 Benjamin made some effort towards a sophisticated DLL suppport 
 for D.

 What I understand: He won't push his changes until "export" 
 will become an attribute.
 But without his changes there is no need to change the semantic 
 of "export".
 It seems like a deadlock.

 I tried to find a solution to this problem. For the moment I 
 ignore the export issue
 and have a look at linux. I understand in linux everything is 
 exported by default.
 If it is decided, that this default behavior is changed in the 
 long term,
 there needs to be a way to switch batch to the old behavior.
 Therefore a compiler switch "exportAll" will be necessary.

 So why do not start with this compiler switch, which will also
 export all symbols on windows.
 If the changes of Benjamin are adapted to this switch we can 
 already get the sophisticated
 dll support and can later decide on the semantic change of 
 export.

 Does this make sense?

 Kind regards
 André
What's the URL to watch the videos? Thanks.
May 19 2016
parent reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
On 05/19/2016 07:15 AM, flamencofantasy wrote:

 What's the URL to watch the videos? Thanks.
Until the HD versions appear later (presumably on YouTube), all current videos are here: https://www.sociomantic.com/blog/2016/05/follow-dconf-2016-in-real-time/#.Vz3WR5R4foe You can find a particular day and talk in the scrollable list there. Ali
May 19 2016
parent flamencofantasy <flamencofantasy gmail.com> writes:
On Thursday, 19 May 2016 at 15:08:32 UTC, Ali Çehreli wrote:
 On 05/19/2016 07:15 AM, flamencofantasy wrote:

 What's the URL to watch the videos? Thanks.
Until the HD versions appear later (presumably on YouTube), all current videos are here: https://www.sociomantic.com/blog/2016/05/follow-dconf-2016-in-real-time/#.Vz3WR5R4foe You can find a particular day and talk in the scrollable list there. Ali
Thank you.
May 19 2016