trids Posted January 26, 2005 Posted January 26, 2005 If the decision of which text-editor to use with AutoIt is still truly up to the user, and support has not been withdrawn for "any text editor even notepad" .. then shouldn't compiler directives be a feature of the compiler that is AutoIt, rather than rewards for subscribing to a particular text-editor?These directives are a good idea, but why not support them intrinsically instead of allowing them only to those agree to change to SciTE:#Compiler_AUT2EXE = C:\AutoIt\Aut2Exe\Aut2Exe.exe#Compiler_Icon = C:\Icons\StarWars\AT ST.ico; Target: C:\AutoIt\User Scripts\Compiled Scripts\Closer.exe#Compiler_Compression = 4#Compiler_Allow_Decompile = y#Compiler_PassPhrase =#Compiler_Res_Fileversion = 0.0.0.9#Compiler_Res_Description = Startup Script#Compiler_Res_LegalCopyright =#Compiler_Res_Comment = Created by me#Compiler_Res_Field1Name = Platform#Compiler_Res_Field1Value = 9x, NT#Compiler_Res_Field2Name = Autoit version#Compiler_res_Field2Value = 1.0.103#Compiler_Run_AU3Check = n#Compiler_Run_Before =#Compiler_Run_After =I'm not interested in re-opening the Text-Editor Wars: it may be fun to mass-debate about whose editor is better, but IMHO it would be self-destructive for AutoIt to start to favour one text-editor over another. If a good idea originates from a certain user-group or from any individual, then give credit where it's due; but if it fits within the scope of the language (like the compiler directives), then lets also see it absorbed into the scope of the language. Please, lets see these directives recognised by the compiler directly.
LazyCoder Posted January 26, 2005 Posted January 26, 2005 (edited) I think there is no editor-war in what you say: the "compiler directives" can be used by different elements, and not specificaly by the editor.For instance, I use some directive to use compileau3.I launch this utility through PSPad, but at first, I used to use Notepad as editor and use batch files (and then right-click pop-up actions made thanks to some registry editing) to launch and/or compile my scripts...Thus, you can't say "compiler directives" are strictly editor-related features.ANYWAY, I agree with you: compiler directives sould stay compiler properties...Additional features like the one provided by CompileAu3 should best be inside comments for instance:#ce #Compiler_AUT2EXE = C:\AutoIt\Aut2Exe\Aut2Exe.exe #Compiler_Icon = C:\Icons\StarWars\AT ST.ico ; ... Add as many CompileAu3 (or other tools) directives here ... #csand parsed someway by each tool...This would be clearer.Finally I do not have any requirement myself: I use few "compiler directives" and do not intend (for the moment at least) to produce some tool using them, so... Edited January 26, 2005 by LazyCoder A good program computing A into B is mostly one that won't crash in all the other cases...
trids Posted January 28, 2005 Author Posted January 28, 2005 (edited) Thanks for your reply, LazyCoder.My comments about the text-editor wars may be better understood in the context of threads like these:http://www.autoitscript.com/forum/index.php?showtopic=1001http://www.autoitscript.com/forum/index.ph...wtopic=5574&hl=http://www.autoitscript.com/forum/index.ph...454entry48454But the point I'm trying to make is that I believe the compiler (Aut2Exe.exe) should be beefed up to recognise enhanced compiler directives like those currently only supported by/for the SciTE sub-community .. rather than leaving it up to a scripted pre-processor. And I like your idea of having editor-specific "directives" within comments, where CompileAu3 can do it's SciTE-specific thing for example.I'm not trying to take anything away from the SciTE-fans .. in fact I'm suggesting that their good idea would benefit more people if it were implemented in the right place. Edit: reference to 'editor-specific "directives" '; errata Edited January 28, 2005 by trids
therks Posted January 28, 2005 Posted January 28, 2005 But the point I'm trying to make is that I believe the compiler (AutoIt3.exe) ...Actually, AutoIt3.exe would be the interpreter wouldn't it? Aut2Exe would be the compiler. My AutoIt Stuff | My Github
trids Posted January 28, 2005 Author Posted January 28, 2005 Of course you're right - thanks Saunders! (( I'll just make that change, so as not to be misleading ))
this-is-me Posted January 28, 2005 Posted January 28, 2005 I made this suggestion long ago, and some strange person (might have been Jon ) said that they didn't want to go through the trouble of having to add a script parser to the aut2exe since there was only a fileinstall parser as of now. Now that this is more popular, I hope it can be included after all. Who else would I be?
Josbe Posted January 28, 2005 Posted January 28, 2005 I agree with you, trids.I like the idea.<{POST_SNAPBACK}> AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta
Developers Jos Posted January 29, 2005 Developers Posted January 29, 2005 (edited) But the point I'm trying to make is that I believe the compiler (Aut2Exe.exe) should be beefed up to recognise enhanced compiler directives like those currently only supported by/for the SciTE sub-community .. rather than leaving it up to a scripted pre-processor. And I like your idea of having editor-specific "directives" within comments, where CompileAu3 can do it's SciTE-specific thing for example.I'm not trying to take anything away from the SciTE-fans .. in fact I'm suggesting that their good idea would benefit more people if it were implemented in the right place. Edit: reference to 'editor-specific "directives" '; errata<{POST_SNAPBACK}>The compiler directives are used by Compileau3.exe, which is a separate AutoIt3 script that i have written. It is available on My AutoIt3 stuff page and also incorporated in SciTE4AutoIt3 installer. It can be use by anybody with any editor or stand alone. Edited January 29, 2005 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
SlimShady Posted January 29, 2005 Posted January 29, 2005 @JdeB:trids is pretty clear y'know.As you quoted him:But the point I'm trying to make is that I believe the compiler (Aut2Exe.exe) should be beefed up to recognise enhanced compiler directives like those currently only supported by/for the SciTE sub-community .. rather than leaving it up to a scripted pre-processor.
Developers Jos Posted January 29, 2005 Developers Posted January 29, 2005 @JdeB:trids is pretty clear y'know.As you quoted him:<{POST_SNAPBACK}>Could be i am reading things wrong here but i read in layman terms that it is only supported in SciTE and wanted to clarify its not a SciTE feature.... thats all.. should be beefed up to recognise enhanced compiler directives like those currently only supported by/for the SciTE sub-community SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
SlimShady Posted January 29, 2005 Posted January 29, 2005 Anyways, this is the developer forum. So the developers should reply with their thoughts.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now