www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - pragma suggestion

reply bobef <bobef_member pathlink.com> writes:
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...
Sep 01 2005
parent reply "Walter" <newshound digitalmars.com> writes:
"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

 source files. Maybe something similar to pragma(importdir,"../foo"); I

 this is not compiler specific since D imports don't take path in any form

 maybe it is appropriate...

I've gone back and forth with this. The basic problem is it makes the source files non-portable.
Sep 01 2005
parent Derek Parnell <derek psych.ward> writes:
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

 source files. Maybe something similar to pragma(importdir,"../foo"); I

 this is not compiler specific since D imports don't take path in any form

 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
Sep 01 2005