This doesn't have got much to do with what I wrote in the first post of this thread.Mijikai wrote:I would also 'force' EnableExplicit
In the beginning i never used it and though i dont need it... obviously a mistake
Now i always use it (i also use End btw.).
I think it would be a good thing to have it only as check box option in the compiler settings that by default is always on.
Feel free to start a discussion about that in a separate thread, but don't hijack this one

Maybe someone is interested in the fact, that I (deliberately!) never wrote that ...Denis wrote:+1
EnableExplicit by default will be good.
This is a different discussion. Feel free to discuss that in your own thread, but don'*t hijack this one

There is no EnableExplicit at all in that code. But the trick is:Little John wrote:Another improvement of example codes would be, to make them ready for usage with EnableExplicit. So I actually would write the respective examle code like this:Code: Select all
Prototype.i ProtoMessageBoxW(Window.i, Body.p-unicode, Title.p-unicode, Flags.i = 0) Define MsgBox.ProtoMessageBoxW #Library = 0 If OpenLibrary(#Library, "User32.dll") MsgBox = GetFunction(#Library, "MessageBoxW") MsgBox(0, "Hello", "World") EndIf
That code runs with EnableExplicit on or off, so it is always usable!
In contrast, the following code (similiar to that one in the help)
Code: Select all
Prototype.i ProtoMessageBoxW(Window.i, Body.p-unicode, Title.p-unicode, Flags.i = 0)
#Library = 0
If OpenLibrary(#Library, "User32.dll")
MsgBox.ProtoMessageBoxW = GetFunction(#Library, "MessageBoxW")
MsgBox(0, "Hello", "World")
EndIf
I never requested that, and this has nothing got to do with what I wrote in my original post here.DK_PETER wrote:Is it really that hard to writeorCode: Select all
EnableExplicit
?Code: Select all
DisableExplicit
Extremely redundant request...
However, it's old news hat some people like to post offtopic stuff in other people's threads ...