Re: override

2003-08-10 Thread Nicola Ken Barozzi
Paul King wrote, On 09/08/2003 15.45: ... For the conceptual model is one of textual inclusion (or XML entity inclusion if you are that way inclined). The ant way states (at least for properties) that whoever sets things first "wins". I would argue that would be the simplest model for everything

Re: override

2003-08-09 Thread Paul King
Costin Manolache wrote: IMHO ant should try to be a bit easier to use than XSLT. I was playing with some examples to capture the use cases which have been discussed for include and import with a view to getting a/some simple models straight in my head. I am attempting in part to explain the use cas

RE: override

2003-08-09 Thread Costin Manolache
Jose Alberto Fernandez wrote: > From the XSLT bible by Michael Kay (2nd edition page 232): > "Like inheritance un object-oriented languajes, is designed > to allow the creation of a library or reusable components, only in this > case, the components are modules of stylesheets. And the mechanism w

Re: override

2003-08-08 Thread Nicola Ken Barozzi
Jose Alberto Fernandez wrote, On 08/08/2003 20.02: ... From the XSLT bible by Michael Kay (2nd edition page 232): "Like inheritance un object-oriented languajes, is designed to allow the creation of a library or reusable components, only in this case, the components are modules of stylesheets. An

RE: override

2003-08-08 Thread Jose Alberto Fernandez
> From: Costin Manolache [mailto:[EMAIL PROTECTED] > > Nicola Ken Barozzi wrote: > > >> Yes, most build files have a target named "build" - but I > don't know why > >> would you think about inheritance and OO instead of just > qualified names. > >> > >> I don't know _any_ programming language

RE: override

2003-08-08 Thread Jose Alberto Fernandez
> From: Costin Manolache [mailto:[EMAIL PROTECTED] > > Jose Alberto Fernandez wrote: > > > One of the problems I have with the "rewriting" approach is > that target > > names get rewritten y the caller which means that two independent > > importers may decide to use the same prefix and hence you

Re: override

2003-08-08 Thread Nicola Ken Barozzi
Trying to summarize. Costin Manolache wrote, On 08/08/2003 16.21: Nicola Ken Barozzi wrote: ... As has been pointed out in these threads, Ant is a different beast, and should be treated differenty. +1 We are talking about OO concepts and inheritance - in context. Well, we are not. We are referenc

Re: override

2003-08-08 Thread Costin Manolache
Nicola Ken Barozzi wrote: >> Yes, most build files have a target named "build" - but I don't know why >> would you think about inheritance and OO instead of just qualified names. >> >> I don't know _any_ programming language where import is used for >> inheritance. > > Well, I pointed out xslt,

RE: override

2003-08-08 Thread Costin Manolache
Jose Alberto Fernandez wrote: >> I don't know _any_ programming language where import is used for >> inheritance. > Believe it or not, XSLT is a programming language. :-) > And it uses the term import for inheritance. I know XSLT is a programming language, I don't remember it beeing an "OO" lan

RE: override

2003-08-08 Thread Costin Manolache
Jose Alberto Fernandez wrote: > One of the problems I have with the "rewriting" approach is that target > names get rewritten y the caller which means that two independent > importers may decide to use the same prefix and hence you get a clash. > Namespaces or java-style fully-qualified-names are

RE: override

2003-08-07 Thread Adam Jack
I stumbled upon this thread late, and have tried to catch up, but am far from there, sorry. My perspective is I import (include) things for "scriptlet re-use", I am not trying to override. I guess w/ property immutability I'd just assumed target immutability (although I know importing can change t

Re: override

2003-08-07 Thread Nicola Ken Barozzi
Knut Wannheden wrote, On 07/08/2003 16.13: ... Maybe it would be better to think in the term of "mixin" as some languages (e.g. some Lisp flavours and Ruby) use. The following two exerpts are from the Modules chapter of the free book "Programming Ruby: The Pragmatic Programmer's Guide" (http://www

RE: override

2003-08-07 Thread Jose Alberto Fernandez
> From: Costin Manolache [mailto:[EMAIL PROTECTED] > > Nicola Ken Barozzi wrote: > > > I don't know _any_ programming language where import is used for > inheritance. > Believe it or not, XSLT is a programming language. :-) And it uses the term import for inheritance. > Well, KISS is my conc

Re: override

2003-08-07 Thread Nicola Ken Barozzi
Jose Alberto Fernandez wrote, On 07/08/2003 16.15: Some comments on the issues inside: From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] ... Well, IMHO I personally don't see a real, strong, compelling reason to have targets have crosstalk between themselves, but I do have an equally strong

Re: override

2003-08-07 Thread Nicola Ken Barozzi
Sorry if the mail becomes long, I have difficulty in deciding what to snip ;-) Costin Manolache wrote, On 07/08/2003 15.56: Nicola Ken Barozzi wrote: Thanks for the overview, Nicola ! Just to get you up to speed, the current issue is about multiple inheritance, and how the current system allows c

RE: override

2003-08-07 Thread Jose Alberto Fernandez
Some comments on the issues inside: > From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] > > Costin Manolache wrote, On 07/08/2003 4.43: > > >>- add possibility of prefix in import declaration > >> > > > > This would work as a "qualified name" ? > > I think basically yes, but > > > What

Re: override

2003-08-07 Thread Knut Wannheden
> >> > >>>Just to get you up to speed, the current issue is about multiple > >>>inheritance, and how the current system allows cross-import (unwanted?) > >>>side-effects, as Conor has brilliantly shown. > >> > >> What I'm not sure I understand is what import has to do with multiple > >> inheritance

Re: override

2003-08-07 Thread Costin Manolache
Nicola Ken Barozzi wrote: >> Thanks for the overview, Nicola ! >> >>>Just to get you up to speed, the current issue is about multiple >>>inheritance, and how the current system allows cross-import (unwanted?) >>>side-effects, as Conor has brilliantly shown. >> >> What I'm not sure I understand

Re: override

2003-08-07 Thread Nicola Ken Barozzi
Costin Manolache wrote, On 07/08/2003 4.43: Thanks for the overview, Nicola ! Just to get you up to speed, the current issue is about multiple inheritance, and how the current system allows cross-import (unwanted?) side-effects, as Conor has brilliantly shown. What I'm not sure I understand is what

Re: override

2003-08-07 Thread Costin Manolache
Thanks for the overview, Nicola ! > Just to get you up to speed, the current issue is about multiple > inheritance, and how the current system allows cross-import (unwanted?) > side-effects, as Conor has brilliantly shown. What I'm not sure I understand is what import has to do with multiple inhe

RE: override

2003-08-06 Thread Jose Alberto Fernandez
> From: Costin Manolache [mailto:[EMAIL PROTECTED] > > Jose Alberto Fernandez wrote: > > > 1) I should be able to determine the correctness (loosely > used here) of a > > buildfile by looking at that buildfile (and its dependencies) in > > isolation. This means that the fact that I am imported b

RE: override

2003-08-06 Thread Jose Alberto Fernandez
> From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] > > Costin Manolache wrote, On 06/08/2003 6.44: > > ... > > One think I don't understand is why the import should be > used as a OO > > substitute. Most languages I know define the import in a > much simpler > > way. Maybe I'm missing too mu

Re: override

2003-08-06 Thread Nicola Ken Barozzi
Costin Manolache wrote, On 06/08/2003 6.44: ... One think I don't understand is why the import should be used as a OO substitute. Most languages I know define the import in a much simpler way. Maybe I'm missing too much of the context, I'm still trying to get updated with the mailing lists. Just t

RE: override

2003-08-06 Thread Costin Manolache
Jose Alberto Fernandez wrote: > First I do not think I have all the answers, just to keep things in > perspective. What I think I have is a set of principles that I think any > viable solution should provide. Lets see if I can put them into words: ;-| > > 1) I should be able to determine the corr

Re: override

2003-08-05 Thread Steve Loughran
Jose Alberto Fernandez wrote: From: Conor MacNeill [mailto:[EMAIL PROTECTED] All the resolution of the semantics of the language is done before name mangling This is not strictly true. In C++ you decide (by using extern "C") whether to place a symbol in the global namespace or its own (by name m

RE: override

2003-08-05 Thread Jose Alberto Fernandez
> From: Conor MacNeill [mailto:[EMAIL PROTECTED] > > > > All the resolution of the semantics of the language is done > > before name mangling > > This is not strictly true. In C++ you decide (by using extern > "C") whether > to place a symbol in the global namespace or its own (by name > mang

RE: override

2003-08-04 Thread Conor MacNeill
> > Just to mention, name mangling in C++, IIRC, is not for the code writer > consumption. It is for the mapping of the code to the symbol tables > of the C compilers and linkers below. > I think we are pushing the whole OO analogy for Ant a little too hard. Ant build files are not class definitio

RE: override

2003-08-04 Thread Jose Alberto Fernandez
> From: Conor MacNeill [mailto:[EMAIL PROTECTED] > > > > > What stops you from writing two separate buildfiles one for each > > that perform the import and do the respective override. From your > > main build you just these new files. > > Probably nothing, especially in this particular example.

RE: override

2003-08-04 Thread Jose Alberto Fernandez
> From: Conor MacNeill [mailto:[EMAIL PROTECTED] > > On Fri, 1 Aug 2003 10:47 pm, Nicola Ken Barozzi wrote: > > How can this thing be done while shielding interactions? > > > > You make the renaming optional. > > > > > All of a's and b's targets go unprefixed. If those builds use > targets

RE: override

2003-08-04 Thread Conor MacNeill
> > What stops you from writing two separate buildfiles one for each > that perform the import and do the respective override. From your > main build you just these new files. Probably nothing, especially in this particular example. However, not only should I not have to do that, there will be si

RE: override

2003-08-04 Thread Jose Alberto Fernandez
> From: Conor MacNeill [mailto:[EMAIL PROTECTED] > > On Fri, 1 Aug 2003 07:40 pm, Jose Alberto Fernandez wrote: > > > > OK, lets get on the nitty gritty of the matter. :-) > > > > What do you mean by unrelated imports? If they are > unrelated why do you > > need to import them toghether? > > Th

Re: override

2003-08-01 Thread Nicola Ken Barozzi
Dominique Devienne wrote, On 01/08/2003 17.58: On second though, instead of renaming, why don't we use IDs, which are common and well understood: Well, they have a special meaning in XML and I would not use them for this feature. It also spoils consistency with other ant namings, as usually we us

Re: override

2003-08-01 Thread Nicola Ken Barozzi
Dominique Devienne wrote, On 01/08/2003 17.38: -Original Message- From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 10:27 AM To: [EMAIL PROTECTED] Subject: Re: override and that renamed targets from a and b should not be call-able directly from the command

RE: override

2003-08-01 Thread Dominique Devienne
o:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 9:24 AM > To: Ant Developers List > Subject: Re: override > > > > > > > > > Thoughts? > > Conor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: override

2003-08-01 Thread ttye
ld tool. Keep up the good work. -Original Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 9:24 AM To: Ant Developers List Subject: Re: override On Fri, 1 Aug 2003 10:47 pm, Nicola Ken Barozzi wrote: > How can this thing be done while shielding inter

RE: override

2003-08-01 Thread Dominique Devienne
> -Original Message- > From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 10:27 AM > To: [EMAIL PROTECTED] > Subject: Re: override > > > and that renamed targets from a and b should not be > > call-able directly from the comm

Re: override

2003-08-01 Thread Nicola Ken Barozzi
Dominique Devienne wrote, On 01/08/2003 17.14: -Original Message- From: Conor MacNeill [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 9:24 AM To: Ant Developers List Subject: Re: override On Fri, 1 Aug 2003 10:47 pm, Nicola Ken Barozzi wrote: How can this thing be done while

RE: override

2003-08-01 Thread Dominique Devienne
> -Original Message- > From: Conor MacNeill [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 9:24 AM > To: Ant Developers List > Subject: Re: override > > On Fri, 1 Aug 2003 10:47 pm, Nicola Ken Barozzi wrote: > > How can this thing be done w

RE: override

2003-08-01 Thread Dominique Devienne
I totally agree with everything you in this post Conor ;-) --DD > -Original Message- > From: Conor MacNeill [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2003 5:28 AM > To: Ant Developers List > Subject: Re: override > > On Fri, 1 Aug 2003 07:40 pm, Jose Al

Re: override

2003-08-01 Thread Conor MacNeill
On Fri, 1 Aug 2003 10:47 pm, Nicola Ken Barozzi wrote: > How can this thing be done while shielding interactions? > You make the renaming optional. All of a's and b's targets go unprefixed. If those builds use targets which are provided by the main build, or by the other, unprefixed, import

Re: override

2003-08-01 Thread Nicola Ken Barozzi
Conor MacNeill wrote, On 01/08/2003 12.27: On Fri, 1 Aug 2003 07:40 pm, Jose Alberto Fernandez wrote: ... On the other hand, if you have to import them, then it is because they have to share something or one defines some target for the other, or something. I disagree. Importing them into a common b

Re: override

2003-08-01 Thread Conor MacNeill
On Fri, 1 Aug 2003 07:40 pm, Jose Alberto Fernandez wrote: > > OK, lets get on the nitty gritty of the matter. :-) > > What do you mean by unrelated imports? If they are unrelated why do you > need to import them toghether? They may be unrelated because they are written by different people. I w

Re: override

2003-08-01 Thread Nicola Ken Barozzi
Jose Alberto Fernandez wrote, On 01/08/2003 11.40: ... OK, lets get on the nitty gritty of the matter. :-) What do you mean by unrelated imports? If they are unrelated why do you need to import them toghether? Why don't you use to call between the unrelated targets? In other words, the now famous

RE: override

2003-08-01 Thread Jose Alberto Fernandez
> From: Conor MacNeill [mailto:[EMAIL PROTECTED] > > On Fri, 1 Aug 2003 04:20 am, Jose Alberto Fernandez wrote: > > Given the nature of ANT, I think it may be really important > to be able > > to specify super in the dependencies of the overriden method. > > I think part of the problem on this is

Re: override

2003-08-01 Thread Conor MacNeill
On Fri, 1 Aug 2003 04:20 am, Jose Alberto Fernandez wrote: > Given the nature of ANT, I think it may be really important to be able > to specify super in the dependencies of the overriden method. > I think part of the problem on this issue i that we have been trying > too hard to use rewriting as o

RE: override

2003-07-31 Thread Jose Alberto Fernandez
> From: Conor MacNeill [mailto:[EMAIL PROTECTED] > > On Thu, 31 Jul 2003 10:23 pm, Nicola Ken Barozzi wrote: > > > The only thing that comes to mind is that I cannot use super ion > > dependencies, which is a nifty feature :-( > > Not sure why this would be needed. Just add as the > first cont

RE: override

2003-07-31 Thread Wannheden, Knut
Dominique, > Indeed ;-) What you demoed Conor is precisely the use case I > need, which was > very much inspired by Knut's past posts. I also like Knut's > name better, as it's more explicit. > > The one thing I'm not too sure about is the and > ones... Why are these needed? Property > immut

Re: override

2003-07-31 Thread Nicola Ken Barozzi
peter reilly wrote, On 31/07/2003 16.41: +1 for override[-target] +1 for include as import without target override sematics +1 for both here too. Maybe getting those working and combining them can make us see what/if extra functionality is needed for an . Since in Centipede I do not use directly

Re: override

2003-07-31 Thread Stefan Bodewig
On Thu, 31 Jul 2003, peter reilly <[EMAIL PROTECTED]> wrote: > +1 for include as import without target override sematics +1 Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: override

2003-07-31 Thread Nicola Ken Barozzi
Conor MacNeill wrote, On 31/07/2003 15.44: On Thu, 31 Jul 2003 10:23 pm, Nicola Ken Barozzi wrote: The only thing that comes to mind is that I cannot use super ion dependencies, which is a nifty feature :-( Not sure why this would be needed. Just add as the first contained task. All of the other

Re: override

2003-07-31 Thread peter reilly
+1 for override[-target] +1 for include as import without target override sematics On Thursday 31 July 2003 15:25, Dominique Devienne wrote: > > PS: I checked the online manual, and didn't see . After the > discussion I had with Stefan, I thought it was there... Did I > misunderstand, or is it jus

Re: override

2003-07-31 Thread Stefan Bodewig
On Thu, 31 Jul 2003, Dominique Devienne <[EMAIL PROTECTED]> wrote: > PS: I checked the online manual, and didn't see . It's in the manual for CVS HEAD but not the online manual (as is not part of 1.5.x). Stefan - To unsubscrib

RE: override

2003-07-31 Thread Dominique Devienne
d the online manual, and didn't see . After the discussion I had with Stefan, I thought it was there... Did I misunderstand, or is it just not documented. > -Original Message- > From: Wannheden, Knut [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2003 7:29 AM > To: &#x

Re: override

2003-07-31 Thread Conor MacNeill
On Thu, 31 Jul 2003 10:23 pm, Nicola Ken Barozzi wrote: > The only thing that comes to mind is that I cannot use super ion > dependencies, which is a nifty feature :-( Not sure why this would be needed. Just add as the first contained task. All of the other dependencies will have been run by th

RE: override

2003-07-31 Thread Wannheden, Knut
This very much reminds me of what I was doing in our build environment. I basically had a template buildfile and could override that for any project like this: <.../> <.../> The difference is only that I didn't implement as a task (top-level tasks didn't exist back then). (Similar

Re: override

2003-07-31 Thread Nicola Ken Barozzi
Conor MacNeill wrote, On 31/07/2003 14.07: ... I think with a renaming task this would let you override any part of the build easily. Very cool indeed :-) [I'd like to thank all the ones that are discussing on import. Very nice posts and constructive stuff, I love you guys :-)] It seems that we

Re: override

2003-07-31 Thread Antoine Levy-Lambert
Looks interesting. Cheers, Antoine - Original Message - From: "Conor MacNeill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 31, 2003 2:07 PM Subject: override > I'd like to take a slightly different angle on the issue by getting > some thoughts on this little experim