| View previous topic :: View next topic |
| Author |
Message |
savage
Joined: 02 Jul 2004 Posts: 206
|
Posted: Sat Nov 19, 2005 12:14 am Post subject: change where #includes take place |
|
|
I don't know if this would even be possible, but it would kick ass for those of us who have dabbled in the forbidden arts of metaprogramming in order to make some tasks in ahk a little cooler .
What I mean is this:
parsemenus.rb produces the file keymenus.ahk
| Code: |
Run, parsekeymenus.rb
#include keymenus.ahk ;<URL:keymenus.pp>
|
Currently this happens - the keymenus.ahk is stuck into the file, then the file is interpreted. The next time the script is reloaded the new file will be included.
What I'd like to see happening is the file resulting from parsekeymenus.ahk being included. Basically I'd like to see #includes done as they are encountered.
If you're wondering, this is different from the old ahk-preprocesser request because the stuff I'm doing is out of the league of normal text preprocessors. This is more metaprogramming - programs writing programs stuff. I'm working on something that will show why having this would make it somewhat more straightforward to add nice things to ahk. _________________ <enormous animated gif> |
|
| Back to top |
|
 |
savage
Joined: 02 Jul 2004 Posts: 206
|
Posted: Sat Nov 19, 2005 1:00 am Post subject: |
|
|
Err, I guess this isn't really necessary at all. You can do the same thing by checking the file modification times, running the parse and then (duh) reloading the script. No wrapper script is necessary, like I had imagined. _________________ <enormous animated gif> |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5068 Location: imaginationland
|
Posted: Sat Nov 19, 2005 1:43 am Post subject: |
|
|
| Hmm I'm not sure but it sounds like RunWait (instead of Run) would work. |
|
| Back to top |
|
 |
savage
Joined: 02 Jul 2004 Posts: 206
|
Posted: Sat Nov 19, 2005 3:35 am Post subject: |
|
|
No the point is that the included file is merged in and THEN everything is run. Unless I've completely missed something. _________________ <enormous animated gif> |
|
| Back to top |
|
 |
|