he-the-great/Juno-Windows-Class-Library — Issue #13: [tlbimpd] handling of types with reserved words as names
Author: Numpsy
Created: 2011-12-19 23:52:46+00:00
State: open

Some type libraries define types which have special or reserved words as names.

For example, the Outlook 12 typelib defines an interface called 'Exception', and if you try to compile the .d file produced from it by tlbimpd in a recent DMD2 you get an error saying that only object.d can define a type called Exception.

These types need to be renamed somehow. We could just do what it already does for parameters with reserved names and rename them in a fixed way (e.g append 'Type' to the name), or we could do what the VisualC++ #import command does and allow the user to rename types to specified values.