Ticket #35 (closed enhancement: fixed)
compiler Directives for target(type) and reference
Reported by: | hopscc | Owned by: | Chuck |
---|---|---|---|
Priority: | medium | Milestone: | |
Component: | Cobra Compiler | Version: | 0.8.0 |
Keywords: | Cc: |
Description
heres a patch for supporting the current commandline -target and -reference specifications as compiler directives.
e.g
%% Target winexe
%% Reference System.Windows.Form
%% Reference "System.Drawing".
This allows build of things like libraries to be entirely(*) source code specified.
The patch includes a mod to the %% throw compiler directive to specify an optional string that will be printed before the exception is thrown.
(*) For completeness we should also allow -embed-run-time to be specified this way but if the default state of this is to be reversed eventually (loaded to GAC) its arguably not going to be needed.
There was some mention of 'use <namespace>' being eventually enhanced in some fashion to make the -reference switch somewhat less necessary... when/if that happens the compiler Directive
probably be deprecated if the same capability is available..