On 7/31/07, Neil Hodgson <[EMAIL PROTECTED]> wrote:
>    I didn't want to do it this way since its less useful than having
> the constants be available to Lua similar to the way that other
> constants (such as SCI_SETZOOM) are made available. Doing this in the
> same way as SCI_SETZOOM would add around 3K for strings (in
> IFaceTable.cxx) that are already in the executable so I'd prefer a way
> that avoids double storage of those strings.

So the IDM_ constants could be put into IFaceTable, and would then be
automatically available. Then GetMenuCommandAsInt() could call
IFaceTable::FindConstant(name). I know this is a little awkward,
because then the script-generated tables in IFaceTable come from two
sources, but it would avoid the double storage issue and provides a
unified mechanism to look up significant constants.

steve d.
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to