On 5/18/2011 10:46 PM, Steven Schveighoffer wrote:
but you can do a string mixin to define the entire class. This is not
an easy thing to do, because you'd have to write the entire class as a
string of text.
Thanks for the attempt and sample code.
Seen that script import somewhere before. Perhaps others would like to help.
Does mixin generate the same binary code as #define as inline code,which
meant that same binary is repeated everywhere that macro is used?
Or does it make a linked to the in a centralized locations that allow
binary sharing when it is the same typed T??
Do you have any idea? because the results is in dll/exe I cannot really
tell. But someone that knows how the compiler works should be able to.
--
Matthew Ong
email: on...@yahoo.com