Re: Inheritance question
- From: "Flomo Togba Kwele" <Flomo@xxxxxxxxxxxxxxxx>
- Date: Fri, 25 May 2007 20:28:11 -0500
Peter,
I do define the string in each of the derived classes as well as the base. But the property is
defined in the base class, as you suggested, which works perfectly. I am sorry if I gave you the
impression that I was putting the keywords in the base class.
I certainly do not want to appear as a Subversion expert - I just am trying to learn it. If a
module under source control contains a keyword, it is expanded in that module when it is committed
to the repository.
Flomo
--
Peter Duniho wrote:
On Fri, 25 May 2007 13:00:42 -0700, Flomo Togba Kwele <Flomo@xxxxxxxxxxxxxxxx> wrote:.
The reason I have to define the string again in the derived class is that its value gets
changed each time it is checked in.
I don't see how you arrive at that conclusion. Why does the fact that the value gets change
affect where you have to declare the field that contains the string?
It's value is not a function of the IDE, but an outside event. The
source control changes the code where it sees keywords (e.g, $Date$ or $Revision$) and
expands it ($Date$) to "$Date: 2007-05-25 10:57:56 -0700 (Fri, 25 May 2007) $" (for example).
Why does that prevent you from including the keywords in the derived class rather than the base
class?
There may well be some limitation that I don't understand. I haven't used Subversion so I don't
know exactly what its rules are. But given the rules you've stated so far in this thread, the
code I posted should work fine.
If Subversion only looks for its keywords in field initializations that are part of the field
declaration, I could see that as being a problem. But you haven't suggested that's the case,
nor do I see why it would be.
Pete
- Follow-Ups:
- Re: Inheritance question
- From: Peter Duniho
- Re: Inheritance question
- References:
- Inheritance question
- From: Flomo Togba Kwele
- Re: Inheritance question
- From: Flomo Togba Kwele
- Re: Inheritance question
- From: Peter Duniho
- Re: Inheritance question
- From: Flomo Togba Kwele
- Re: Inheritance question
- From: Peter Duniho
- Inheritance question
- Prev by Date: Re: Parsing web.config
- Next by Date: Re: Error "The network path was not found"
- Previous by thread: Re: Inheritance question
- Next by thread: Re: Inheritance question
- Index(es):
Relevant Pages
|