Thread overview
Module Paths
Aug 10, 2012
Matt
Aug 10, 2012
Tobias Pankrath
Aug 10, 2012
Matt
Aug 10, 2012
Jacob Carlborg
Aug 11, 2012
Matt
August 10, 2012
Is it possible to retrieve the file path to a module from within the module itself? Or, if not, are there any methods to retrieve the import location list (the argument -I that is passed to the compiler) from within code?
August 10, 2012
On Friday, 10 August 2012 at 02:20:18 UTC, Matt wrote:
> Is it possible to retrieve the file path to a module from within the module itself? Or, if not, are there any methods to retrieve the import location list (the argument -I that is passed to the compiler) from within code?

I don't know of any possibility. What do you want to achieve?
August 10, 2012
I'd like to try to track the source files, to watch for editing. The goal is for Run-time compiling, akin to runtime compiled C++, which allows the programmer to edit their modules, save them, then the program notices the change of file and recompiles, all while the program is still running. The final goal would be to allow the programmer to edit code, and see the changes in realtime, without having to stop the program and restart.
August 10, 2012
On 2012-08-10 14:06, Matt wrote:
> I'd like to try to track the source files, to watch for editing. The
> goal is for Run-time compiling, akin to runtime compiled C++, which
> allows the programmer to edit their modules, save them, then the program
> notices the change of file and recompiles, all while the program is
> still running. The final goal would be to allow the programmer to edit
> code, and see the changes in realtime, without having to stop the
> program and restart.

Tomasz Stachowiak did that way back in the D1 days. He used a modified version of the DDL linker. It might be this code:

https://bitbucket.org/h3r3tic/boxen/src/76f3fab1b889/src/ddl/ddl

-- 
/Jacob Carlborg
August 11, 2012
On Friday, 10 August 2012 at 13:44:13 UTC, Jacob Carlborg wrote:
> On 2012-08-10 14:06, Matt wrote:
>> I'd like to try to track the source files, to watch for editing. The
>> goal is for Run-time compiling, akin to runtime compiled C++, which
>> allows the programmer to edit their modules, save them, then the program
>> notices the change of file and recompiles, all while the program is
>> still running. The final goal would be to allow the programmer to edit
>> code, and see the changes in realtime, without having to stop the
>> program and restart.
>
> Tomasz Stachowiak did that way back in the D1 days. He used a modified version of the DDL linker. It might be this code:
>
> https://bitbucket.org/h3r3tic/boxen/src/76f3fab1b889/src/ddl/ddl

Cool, that seems to be a good example. I'll have a look and see what I can do with it.