Support for export keyword to use with C++ templates ?

2010-01-21 Thread Timothy Madden
Hello Is there any progress or start yet in implemententing export for C++ templates ? A search in the mailing list archive shows the last time the issue was discussed was in 2006. Why is everybody such not interested in this ? It would be such a great feature, especially for a leading C++ implem

Support for export keyword to use with C++ templates ?

2010-01-31 Thread Timothy Madden
On Sat, Jan 30, 2010 at 4:23 AM, Michael Witten [...] > However, I have a gut feeling that at least a restricted version of > 'export' (or a cousin of 'export') could be both useful and trivial to > implement: [...] > Those were my thoughts too. Since such a change must happen in small steps, I w

Re: Support for export keyword to use with C++ templates ?

2012-03-10 Thread Timothy Madden
On 25.01.2010 20:12, Ian Lance Taylor wrote: Timothy Madden writes: [...] g++ is free software. A clean implementation of export would certainly be accepted. All it takes is for somebody to write one. Hello Is that statement above still true please ? I know export is now to be made depr

Re: Support for export keyword to use with C++ templates ?

2012-03-10 Thread James Dennett
On Sat, Mar 10, 2012 at 6:35 AM, Timothy Madden wrote: > On 25.01.2010 20:12, Ian Lance Taylor wrote: >> >> Timothy Madden  writes: > > [...] > >> >> g++ is free software.  A clean implementation of export would >> certainly be accepted.  All it takes is for somebody to write one. > > > Hello > >

Re: Support for export keyword to use with C++ templates ?

2010-01-21 Thread Ian Lance Taylor
Timothy Madden writes: > Is there any progress or start yet in implemententing export for C++ > templates ? Not to my knowledge. The C++0x standards committee considered deprecating export for C++0x, but I think they have decided to retain it for now. > Why is everybody such not interested i

Re: Support for export keyword to use with C++ templates ?

2010-01-22 Thread Timothy Madden
On Fri, Jan 22, 2010 at 2:24 AM, Ian Lance Taylor wrote: > Timothy Madden writes: > >> Is there any progress or start yet in implemententing export for C++ >> templates ? > > Not to my knowledge. > > The C++0x standards committee considered deprecating export for C++0x, > but I think they have d

Re: Support for export keyword to use with C++ templates ?

2010-01-25 Thread Ian Lance Taylor
Timothy Madden writes: > On Fri, Jan 22, 2010 at 2:24 AM, Ian Lance Taylor wrote: >> Timothy Madden writes: >> >>> Why is it so hard to store template definitions (and the set of >>> symbols visible to them) in an >>> object file, probably as a representation of the parsed template source >>>

Re: Support for export keyword to use with C++ templates ?

2010-01-29 Thread Timothy Madden
On Mon, Jan 25, 2010 at 8:12 PM, Ian Lance Taylor wrote: > Timothy Madden writes: > >> On Fri, Jan 22, 2010 at 2:24 AM, Ian Lance Taylor wrote: >>> Timothy Madden writes: >>> Why is it so hard to store template definitions (and the set of symbols visible to them) in an object fil

Re: Support for export keyword to use with C++ templates ?

2010-01-29 Thread Ian Lance Taylor
Timothy Madden writes: > How long would it take for someone to understand how parsing works in > g++ ? Or to understand the build system in gcc ? I don't think you need to understand the build system to implement export in C++. You do clearly need to understand the g++ frontend. However, it's i

Re: Support for export keyword to use with C++ templates ?

2010-01-29 Thread Paolo Carlini
On 01/30/2010 01:14 AM, Ian Lance Taylor wrote: > I don't think you need to understand the build system to implement > export in C++. You do clearly need to understand the g++ frontend. > However, it's impossible for me to estimate how long it would take > somebody to understand it. It would depe

Re: Support for export keyword to use with C++ templates ?

2010-01-29 Thread Michael Witten
On Fri, Jan 29, 2010 at 8:05 PM, Paolo Carlini wrote: > Even for implementors knowing *very* well both the details of the C++ > standard and the internals of a specific front-end, implementing export > is an *highly* non-trivial task. However, I have a gut feeling that at least a restricted versi

Re: Support for export keyword to use with C++ templates ?

2010-01-29 Thread Ian Lance Taylor
Paolo Carlini writes: > On 01/30/2010 01:14 AM, Ian Lance Taylor wrote: >> I don't think you need to understand the build system to implement >> export in C++. You do clearly need to understand the g++ frontend. >> However, it's impossible for me to estimate how long it would take >> somebody to

Re: Support for export keyword to use with C++ templates ?

2010-01-29 Thread Joe Buck
On Fri, Jan 29, 2010 at 06:23:45PM -0800, Michael Witten wrote: > On Fri, Jan 29, 2010 at 8:05 PM, Paolo Carlini > wrote: > > Even for implementors knowing *very* well both the details of the C++ > > standard and the internals of a specific front-end, implementing export > > is an *highly* non-tr

Re: Support for export keyword to use with C++ templates ?

2010-01-30 Thread Paolo Carlini
Hi I already tried to tell him that upthread. Sorry about that, last night was tired and didn't follow the whole thread. Anyway, modulo a possible deprecation (I believe M$ through Herb is still pushing for it) I think the slightly more serious side of this export thing is something Ma

Re: Support for export keyword to use with C++ templates ?

2010-01-30 Thread Ian Lance Taylor
Paolo Carlini writes: > Anyway, modulo a possible deprecation (I believe M$ through Herb is > still pushing for it) I think the slightly more serious side of this > export thing is something Mark, if I'm not mistaken, said some time > ago, at the very beginning of the Lto ideas, to the effect th

Re: Support for export keyword to use with C++ templates ?

2010-01-30 Thread Dodji Seketeli
On Sat, Jan 30, 2010 at 01:47:03AM +0200, Timothy Madden wrote: > So nobody here wants to try a big thing ? :( This question strikes me as being not very fair because many GCC people are already pretty much involved. Would you fancy giving a hand? > How long would it take for someone to understa

Re: Support for export keyword to use with C++ templates ?

2010-01-31 Thread Timothy Madden
On Sat, Jan 30, 2010 at 4:05 AM, Paolo Carlini wrote: [...] > Even for implementors knowing *very* well both the details of the C++ > standard and the internals of a specific front-end, implementing export > is an *highly* non-trivial task. [...] Yes, everyone is telling me that, but could someon

Re: Support for export keyword to use with C++ templates ?

2010-01-31 Thread Paolo Carlini
On 02/01/2010 01:26 AM, Timothy Madden wrote: > Since such a change must happen in small steps, I would be interested > to know how 'acceptable' would a limited implementation be at first ? > Like the command line options I have seen declared 'experimental' in > the gcc manual before ... > As I

Re: Support for export keyword to use with C++ templates ?

2010-01-31 Thread Ian Lance Taylor
Timothy Madden writes: > On Sat, Jan 30, 2010 at 4:05 AM, Paolo Carlini > wrote: > [...] >> Even for implementors knowing *very* well both the details of the C++ >> standard and the internals of a specific front-end, implementing export >> is an *highly* non-trivial task. [...] > > Yes, everyon

Re: Support for export keyword to use with C++ templates ?

2010-02-01 Thread Michael Witten
On Sun, Jan 31, 2010 at 6:38 PM, Paolo Carlini wrote: > it's extremely > unlikely that the C++ front-end maintainers could even consider > reviewing patches from a novice for such an hard to implement feature. That says more about the tangled mess that is gcc then about any particular programmer'

Re: Support for export keyword to use with C++ templates ?

2010-02-02 Thread Timothy Madden
On Mon, Feb 1, 2010 at 2:38 AM, Paolo Carlini wrote: > On 02/01/2010 01:26 AM, Timothy Madden wrote: [...] > As I see the issue, you should first check over the next months that the > feature is not deprecated by ISO. I know, I tried to talk about it on std.c++. I am afraid I can not see a consens

Re: Support for export keyword to use with C++ templates ?

2010-02-02 Thread Richard Kenner
> I see that what I need is an assignment for all future changes. If my > employer is not involved with any contributions of mine, the employer > disclaimer is not needed, right ? It's safest to have it. The best way to prove that your employer is not involved with any contributions of yours is w

Re: Support for export keyword to use with C++ templates ?

2010-02-02 Thread Tim Prince
On 2/2/10 7:19 PM, Richard Kenner wrote: I see that what I need is an assignment for all future changes. If my employer is not involved with any contributions of mine, the employer disclaimer is not needed, right ? It's safest to have it. The best way to prove that your employer is not in

Re: Support for export keyword to use with C++ templates ?

2010-02-03 Thread Paolo Bonzini
On 02/02/2010 05:04 AM, Michael Witten wrote: On Sun, Jan 31, 2010 at 6:38 PM, Paolo Carlini wrote: it's extremely unlikely that the C++ front-end maintainers could even consider reviewing patches from a novice for such an hard to implement feature. That says more about the tangled mess th

Re: Support for export keyword to use with C++ templates ?

2010-02-03 Thread Timothy Madden
On Wed, Feb 3, 2010 at 4:19 AM, Richard Kenner wrote: >> I see that what I need is an assignment for all future changes. If my >> employer is not involved with any contributions of mine, the employer >> disclaimer is not needed, right ? > > It's safest to have it.  The best way to prove that your

Re: Support for export keyword to use with C++ templates ?

2010-02-03 Thread Ian Lance Taylor
Timothy Madden writes: > On Wed, Feb 3, 2010 at 4:19 AM, Richard Kenner > wrote: >>> I see that what I need is an assignment for all future changes. If my >>> employer is not involved with any contributions of mine, the employer >>> disclaimer is not needed, right ? >> >> It's safest to have it.

Re: Support for export keyword to use with C++ templates ?

2010-02-03 Thread Richard Kenner
> I do not know the correct wording in English for this but I am legally > licensed as an individual to offer software consulting services and to > develop software. > > So the so-called employer is really my client, with whom I have signed > a contract for consulting services. If you have exactl

Re: Support for export keyword to use with C++ templates ?

2010-02-03 Thread Richard Kenner
> It depends on who owns the code that you write. If you own the code, > then you need to sign papers as an individual contributor. I don't think it's that simple. "who owns the code" is not always clear. There's often a question of who that is. That's why if somebody HAS an employer we usually

Re: Support for export keyword to use with C++ templates ?

2010-02-06 Thread Kai Henningsen
Dodji Seketeli wrote: > On Sat, Jan 30, 2010 at 01:47:03AM +0200, Timothy Madden wrote: > >> So nobody here wants to try a big thing ? :( >> > > This question strikes me as being not very fair because many GCC people > are already pretty much involved. Would you fancy giving a hand? > >