Hi everybody! I guess my ideas will be very usefull and helpfull for all of us!
I don't know, if someone make this offer yet, but as you saw in my subject, I propose to make possible to add in const directory path to include/cfg/ and etc.
For example, something like that:
const WWW_DIR_INC := ":www:registration";
I hope for your support and joint development!
With best regards, Harley!
[const] Directory
Moderator: POL Developer
Re: [const] Directory
If this is a feature request I do not understand. You can define a constant like that in your scripts. Maybe I am missing something.
Re: [const] Directory
Yukiko, yesterday I tried to make one include which contain all info for my server directories. And when I compiled script, I got error!
I maked inc with them, for example:
Code: Select all
const DIR_GDFI := ":Lib:inc_public/GetDataFileInfo";
Code: Select all
include ":Lib:const_public/shard-consts";
include DIR_GDFI;
After that, I thought about new feature for all of us.Unable to read include file '.../pkg/player/login/inc_public/DIR_GDFI.inc'
Compilation failed.
Re: [const] Directory
Ah. Now I understand. You want to use a string constant as part of the include statement. This is interesting but I am not sure it is possible currently because of the way eCompile works.
Re: [const] Directory
Yep! Thank you for retranslate my thoughts. Its some difficult to find needed words at 03:00 AM ))
I think this thing will make easily understanding and connection for programming and make workspace more clear.
Re: [const] Directory
This won't work. eCompile grabs the includes before assigning constants for the very reason that includes can contain constants. It doesn't go through includes one at a time and assign the constants since it needs to know all of the functions and constants available to it before it begins to process the output to the ecl.
Re: [const] Directory
It resolves the constant though it just doesn't parse it correctly as it appears to drop the package location?
Re: [const] Directory
Though I admit I have limited knowledge of programming languages, I am not aware of any language that allows this, no compiled language anyway.