Ban user-redefined init? #32
Replies: 3 comments 5 replies
-
The language doesn't prohibit you from having a random member called |
Beta Was this translation helpful? Give feedback.
-
See: dlang/dmd#12512 |
Beta Was this translation helpful? Give feedback.
-
We should definitely do this. This should have been done years ago. It does not make any sense at all for user code to redefine .init; it breaks so many things and so many expectations for the sake of a practically non-existent use case. Kill it with fire I say! |
Beta Was this translation helpful? Give feedback.
-
Ban user-redefined init is mentioned in https://dpldocs.info/opend/roadmap.html
I'm trying to find information about this but I haven't really found anything about it. This is probably an old discussion I haven't been able to find and haven't found anything about that you can redefine .init for the built in types?
What is a user-redefined .init?
Beta Was this translation helpful? Give feedback.
All reactions