automatic int to short conversion - the HELL?

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed Sep 17 19:38:42 PDT 2008


On Wed, Sep 17, 2008 at 10:26 PM, downs <default_357-line at yahoo.de> wrote:
> void main() { int i; short x; x = i; }
>
> Excuse me, but - how exactly is it that this is in any way, shape or form valid code?
>
> How can I trust a language that allows those kind of shenanigans?
>

lern2warningsflag.


More information about the Digitalmars-d-learn mailing list