Page 1 of 1

Alternative USING macro for defining type aliases

Posted: Tue Oct 01, 2019 1:45 am
by Mistrel
Instead of this:

Code: Select all

Interface ITriangle2i Extends Triangle2i::IObject
EndInterface

Structure PointArray3 Extends Shape2i::PointArray3
EndStructure
You can write this:

Code: Select all

USING(Interface, ITriangle2i, Triangle2i::IObject)
USING(Structure, PointArray3, Shape2i::PointArray3)
With the following macro:

Code: Select all

Macro USING(keyword, identifier, type)
keyword identifier Extends type
End#keyword
EndMacro