ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: Scope of Types
Date Tue, 05 Jun 2001 14:22:21 GMT
At 02:05 PM 6/5/01 +0200, Stefan Bodewig wrote:
>Peter Donald <donaldp@apache.org> wrote:
>
>> At 11:20 AM 6/5/01 +0200, Stefan Bodewig wrote:
>>>Using something via refid implies a typed value, using ${} does not
>>>- especially if the defining project doesn't know the type project B
>>>will be using.
>> 
>> okay - in that case I would just treat it as a normal proeprty and
>> if it can not be resolved (and possibly converted) to be of correct
>> type then it throws a TaskException.
>
>Which means that it has been of the correct type right from the
>beginning (no conversion necessary) - data-type must be available to
>"outer" project, or somebody has defined a String->type converter,
>right?

If by "data-type must be available to 'outer' project" you mean the project
that creates instance must know about datatype - then I agree. I thought
you were saying you should be able to share imports/definitions of types
(ie not instances) between projects.

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


Mime
View raw message