RE: include paths

new topic     » goto parent     » topic index » view thread      » older message » newer message

Thanks Bernie,

   I know I can make due with the EUINC variable, it definitely makes a 
difference. My point is, how much harder, or complex would it be to 
implement the include path recursion into EU?

First of all, in order to fully implement EUINC into my windows 
environment, requires a restart, otherwise, the modified EUINC var, is 
only available to the program that set it. That works well for what I 
was describing before, about setting the EUINC path from within an 
unbound application.
I'm just guessing, but I think I CAN permanently modify the environment 
variables, using windows calls, but that's beyond me.
Using eu's set_env(), is through DOS, which makes it only temporary, 
because a dos box has it's own environment, seperate from the windows 
environment, from what I understand.

Also, how long can an environment string be?
I'm in the process of hoarding all the RDS archives, I'd like to be able 
to have a folder for each significant category if not for every indivual 
library/API.

Personally, this is what I would like to have.
The includes folder, is strictly RDS libs.
Subdirectories contain the various API libs.
The EUINC var is reserved for dynamic inclusion from within an 
application, and for including any libraries not contained in the 
includes folder.
Make sense?

In all honesty, I can see some problems with general recursion of the 
eu\include directory. Filename conflicts come to mind..
I don't know how it should be implemented, but I definitely think that 
the current method of EU includes, needs to be overhauled. The EUINC var 
makes life easier, but there are still some major limitations to how you 
can use the include statement.

Take this example..
My Project Folder:
  myapp.exw -- include /API/extlib.ew
  customlib.ew
  API:
    extlib.ew -- include ../customlib.ew

This would keep my project fully contained, allowing me to move the 
folder without modification of the source code.
As far as I know this is not possible with the current method of 
includes. I need to specify absolutely, where customlib.ew is.

I can probably think of more reasons, given more time, and this post is 
long enough:P

Chris

Bernie Ryan wrote:
> 
> bensler at mail.com wrote:
> > This is what my EUINC var currently looks like, after one day of setting 
> > 
> > 
> > up my EU environment..
> >
> > EUINC=c:\euphoria\include\w320551;c:\euphoria\include\eX17;c:\euphoria\include\mylibs
> > 
> > 
> Chris:
> 
>    Why don't you do this:
> 
> set INC0=%EUDIR%\include\
> set INC1=%INC0%w320551
> set INC2=%INC0%eX17
> set LIB1=%INC0%mylibs
> 
> set EUINC=%INC0%;%INC1%;%INC2%;%LIB1%
> 
> Bernie
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu