-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated template with name conflict #253
Comments
Hmm, seems difficult to fix. |
Is it possible to generate a constructor instead? |
I don't think so. A construct would return the type it's defined in. While this macro returns a pointer to DStep could detect the naming conflict and choose to rename one of the symbols. BTW, how is this intended to be used? |
I think libui (in C) has its own OOP inheritance system. There are functions like Original C code:
I hate macros. Maybe dstep should add underscore after names when conflict happens and show a warning. |
Using the same example as #252, dstep would genreate the following code:
This will not compile in D
The text was updated successfully, but these errors were encountered: