Thread overview
pragma suggestion
Sep 01, 2005
bobef
Sep 01, 2005
Walter
Sep 01, 2005
Derek Parnell
September 01, 2005
Just thought it would be useful if import directories could be set from the source files. Maybe something similar to pragma(importdir,"../foo"); I think this is not compiler specific since D imports don't take path in any form so maybe it is appropriate...


September 01, 2005
"bobef" <bobef_member@pathlink.com> wrote in message news:df6oep$c32$1@digitaldaemon.com...
> Just thought it would be useful if import directories could be set from
the
> source files. Maybe something similar to pragma(importdir,"../foo"); I
think
> this is not compiler specific since D imports don't take path in any form
so
> maybe it is appropriate...

I've gone back and forth with this. The basic problem is it makes the source files non-portable.


September 01, 2005
On Thu, 1 Sep 2005 11:00:45 -0700, Walter wrote:

> "bobef" <bobef_member@pathlink.com> wrote in message news:df6oep$c32$1@digitaldaemon.com...
>> Just thought it would be useful if import directories could be set from
> the
>> source files. Maybe something similar to pragma(importdir,"../foo"); I
> think
>> this is not compiler specific since D imports don't take path in any form
> so
>> maybe it is appropriate...
> 
> I've gone back and forth with this. The basic problem is it makes the source files non-portable.

Agreed. That's why I didn't see much point in putting this functionality into the Build utility either. I can if somebody really needs it, but it sounds like a backwards step.

-- 
Derek Parnell
Melbourne, Australia
2/09/2005 8:01:14 AM