Email or username:

Password:

Forgot your password?
Top-level
Woozle Hypertwin

@ramsey @oschonrock @cptwtf @Girgias @IceWolf

To put it another way (from my experience with C++ and Object Pascal): type-conversion doesn't happen except when explicitly specified in the code; you always(ish) get an error if you try to assign data of one type to a variable of another type.

The conversion method is pretty much always specified explicitly, too (as few assumptions as possible), though sometimes it can be hidden under the hood of an overloaded operator. (Operator overloading is both fun and a source of technical debt, so I try to avoid it.)

1 comment
Oliver Schönrock replied to Woozle

@woozle @ramsey @cptwtf @Girgias @IceWolf

yes, the only exceptions to this are the implicit conversions available in c++ via "standard numeric promotions" and "implicitly converting constructors"...

and in fact, both of these are mostly considered a "legacy anti-feature", and modern compilers and linters will warn against them..

(they can't be removed for backward compatbility reasons).

Go Up