Safer casts

Dee Girl deegirl at noreply.com
Sun May 11 16:19:20 PDT 2008


Janice Caron Wrote:

> Why is my last post not clear? You get two instantiations with
> 
>     sort!(English)(text);
>     sort!(Czech)(text);
> 
> because I statically passed in two separate delegates, but you only
> get one instantiation with
> 
>     sort!(compare)(array)
> 
> because I statically passed in only one delegate. That you passed two
> into mysort is irrelevant, because that's a runtime thing.

Thank you. This is a clear explaining. It took me long time to write my massage with disassembling a program! I wish I saw your post first. I would not have to write it ^_^ Thank you, Dee Girl




More information about the Digitalmars-d mailing list