Safer casts
Sean Kelly
sean at invisibleduck.org
Sun May 18 07:43:04 PDT 2008
Sean Kelly wrote:
> Dee Girl wrote:
>> Yigal Chripun Wrote:
>>
>>> Dee Girl wrote:
>>>
>>>>> I didn't know that Walter is working on making inlining delegates
>>>>> possible, that this is indeed great news. :)
>>>> I think this is great but it is much easy said than done. Inlining an
>>>> indirect call means the callee must be inlined too. Or at least
>>>> duplicated. There is complicated analysis that shows which indirect
>>>> calls can be inlined that way. Not all can.
>>>>
>>> OK. so what?
>>> either way, It's the compiler/linker job to make optimizations. it sure
>>> is more capable and has more info than I am.
>>> I'm not implementing the D compiler, I'm using it. my POV is that of the
>>> user. I believe Walter is a genius compiler writer and that if it's
>>> possible he'll make it happen.
>>
>> But this is the interesting thing. Walter is a genius compiler writer
>> and he made it happen already. Now. Your compiler has it already. And
>> it has it in very elegant form. The point I tried many times to
>> clarify is that Walter has done the great work already. But it is not
>> in the documents. Maybe only Walter knows it now. And Andrei because
>> he wrote std.algorithm exactly to use the feature.
>
> In fact, I think this feature was probably added specifically because
> Andrei needed it for std.algorithm. It has never been discussed or
> documented anywhere, to my knowledge.
I take it back. I created some test code for D 1.0 maybe a year ago
that uses this feature, so it must have worked in D 1.0 at some point.
I must be getting old--my memory is going :-p
Sean
More information about the Digitalmars-d
mailing list