Newbie initial comments on D language - delegate

Leandro Lucarella llucax at gmail.com
Tue Jan 29 07:36:31 PST 2008


Walter Bright, el 28 de enero a las 18:51 me escribiste:
> Edward Diener wrote:
> >Perhaps there are some implementation issues regarding this which I do
> >not understand but these should be overcome in order to present a single
> >interface to the callable concept. Perhaps this has been
> >discussed ad nauseam on this NG already, so please correct me if I do
> >not understand all the ramifications of uniting all callable types under
> >the single idea of 'delegate' while perhaps keeping 'function' around
> >merely for backward compatibility with old code until eventually it is
> >dropped.
> 
> To merge the two requires the generation of thunks at runtime to manipulate the parameters and calling convention. It's doable, but not simple.

And please, don't forget we need plain function pointers to interact with
C.

-- 
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
----------------------------------------------------------------------------
GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145  104C 949E BFB6 5F5A 8D05)
----------------------------------------------------------------------------
Todos en el mundo somos grasas, no hago distinción de sexo y raza, sólo
que algunos lo disfrutan y otros no pueden evitarlo.



More information about the Digitalmars-d mailing list