auto ref deduction and common type deduction inconsistency

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 20 18:59:21 PDT 2014


On Wed, 20 Aug 2014 18:24:29 +0000
via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> What would `cast(int)` do in this case?
just clarifying the intentions. remember that programs are written for
humans in the first place, and programs should be easy to read for
humans. it's not so hard to type extra nine chars, but the reader then
knows what author really wants and sure that author not slipped in the
crack of specs/specific realisation.

"(a&b == c)" is perfectly valid too, yet compiler rejects it, demanding
clarification from the author.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140821/160f1182/attachment.sig>


More information about the Digitalmars-d mailing list