Page 1 of 1

Compiler features

Posted: Wed May 31, 2006 6:57 pm
by Joakim Christiansen
I see you have a EnableDebugger keyword like EnableExplicit, but it does'nt work, that's actually a bug?

I also want a EnableOnErrorsLineSupport!
So I could do:

Code: Select all

#ErrorSupport = #True
CompilerIf #ErrorSupport
  EnableOnErrorsLineSupport
  Declare Error()
  OnErrorGosub(@Error())
CompilerEndIf
Because that's just sexy!

I actually think that all compiler options should be declared like that, you know...

Code: Select all

StartCompilerOptions
  EnableExplicit
  EnableDebugger
  EnableXPSkinSupport
  EnableOnErrorsLineSupport
  SetExecutableFormat = #Windows|#AllCPU
  SetExecutableIcon = "icon.ico"
EndCompilerOptions

Posted: Wed May 31, 2006 7:00 pm
by Trond
EnableDebugger is not supposed to work the same way as EnableExplicit.

Code: Select all


DisableDebugger
  ; Do something weird here without letting the debugger know
EnableDebugger
; Do something weird here and the debugger will catch it


Posted: Wed May 31, 2006 7:02 pm
by Joakim Christiansen
Trond,
Oh, sorry then.

Posted: Mon Aug 14, 2006 11:46 pm
by Joakim Christiansen
But what about the:

Code: Select all

StartCompilerOptions
  EnableExplicit
  EnableDebugger
  EnableXPSkinSupport
  EnableOnErrorsLineSupport
  SetExecutableFormat = #Windows|#AllCPU
  SetExecutableIcon = "icon.ico"
EndCompilerOptions
I think it would be nice, and then we don't need those hidden lines in our sourcecode:
; EnableXP
; UseIcon = icon.ico
And no it shouldn't have to be necessary to set SetExecutableFormat everytime or any of the other options, they should just have a default value.