-
Notifications
You must be signed in to change notification settings - Fork 89
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
add overloading default operator #13321
Comments
Can you elaborate ? |
like when you have a custom valuetype. you might overload the default operator for example: my value type is: Color |
Not sure I understand. |
struct Color { macro default() { // here general operator overloadig |
What is the usage? |
def empty = default(Color); |
I don't think it is a good idea here. |
please add a cutom operator to overload the default macro
The text was updated successfully, but these errors were encountered: