const Propagation

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Mon Dec 29 12:10:09 PST 2014


On Mon, 29 Dec 2014 20:01:59 +0000
Julian Kranz via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> Well, of course you're right; but the thing is - does it really 
> make sense to have a less powerful semantic for functions here? 
> Does it help in any way? I mean, if something works just because 
> you're using a template, it should maybe also work if you're 
> not...
see my another reply. internally templates generates functions with
different signatures, 'cause compiler must know the signature to tell
the caller what exactly it is calling. ;-) templates was born to
overcome this limitation. ;-)
-------------- 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/20141229/82969e41/attachment-0001.sig>


More information about the Digitalmars-d mailing list