Replies: 2 comments 6 replies
-
If you look at the roadmap, implicit cast and Implicit construction seems to be on the agenda. https://dpldocs.info/opend/roadmap.html These are features in C++ that I do like and I haven't had any particular problems with them. I have followed the thread on dlang and it is true that I don't really have the overloading search priority in my head, neither in C++ or D but that hasn't been much a problem. Also if there is a problem you can do an explicit cast anyway. C++ usually politely tells you when there is an ambiguity. In general I'm open for these changes. |
Beta Was this translation helpful? Give feedback.
-
Yeah, for function params and return values in particular it is kinda annoying and I'd like to do something about it. Also there's been some experimentation on an opImplicitCast that might be interesting. I'd love for a dynamic var type to feel really dynamic if we do it all right. |
Beta Was this translation helpful? Give feedback.
-
Carl Sturtivant has posted on the D forum about "the lack of conversions when passing parameters". If you have
you have to call it like this
rather than
It's not just Variant, it's also a struct like
I've always disliked this verbosity. Would you be open to an addition to the standard library that let you do something like this
that creates a function like this
Of course it would need to work with an arbitrary number of parameters with type Foo.
Beta Was this translation helpful? Give feedback.
All reactions