in reply to Re^7: Strong typing and Type Safety.A multilanguage approach (implicit)
in thread Strong typing and Type Safety.A multilanguage approach
Implicit doesn't mean you don't know about it. It means you don't have to take any action for it to happen. You don't convert the value before passing it to the addition operator, so any conversion that occurs is implicit.
Personally, I don't really think about it as conversion (whether implicit or explicit) since conversion implies loss of the original value. I think of the addition operator as "getting the numeric value of the operand". For example, the numeric value of a scalar is "123" whether "123" is stored in the IV slot or "123" is stored in the PV slot, and the numeric value of a scalar is zero whether "0" is stored in the IV slot or "abc" is stored in the PV slot.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Strong typing and Type Safety.A multilanguage approach (implicit)
by chromatic (Archbishop) on Nov 22, 2010 at 02:23 UTC | |
by ikegami (Patriarch) on Nov 22, 2010 at 02:44 UTC | |
by chromatic (Archbishop) on Nov 22, 2010 at 04:08 UTC | |
by ikegami (Patriarch) on Nov 22, 2010 at 08:34 UTC | |
by chromatic (Archbishop) on Nov 22, 2010 at 17:37 UTC | |
| |
by ikegami (Patriarch) on Nov 22, 2010 at 08:31 UTC |