Thread overview | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
September 27, 2009 DMD svn and contract inheritance | ||||
---|---|---|---|---|
| ||||
Thanks for finally taking this way, Walter =) http://www.dsource.org/projects/dmd/timeline -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ---------------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------------- He andáu muchos caminos, muchos caminos he andáu, Chile tiene el buen vino y Suecia, el bacalao. Esta'o Unido tiene el hot do', Cuba tiene el mojito, Guatemala, el cornalito y Brasil la feishoada. |
September 27, 2009 Re: DMD svn and contract inheritance | ||||
---|---|---|---|---|
| ||||
Posted in reply to Leandro Lucarella | Leandro Lucarella wrote:
> Thanks for finally taking this way, Walter =)
You're welcome. I hadn't done it before because I couldn't figure out a reasonable way of implementing it.
|
September 27, 2009 Re: DMD svn and contract inheritance | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright, el 27 de septiembre a las 13:45 me escribiste: > Leandro Lucarella wrote: > >Thanks for finally taking this way, Walter =) > > You're welcome. I hadn't done it before because I couldn't figure out a reasonable way of implementing it. I don't know if you are talking about DMD being in a public repo, the contract inheritance or both. But anyway, I'm glad you could finally do both =) -- Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/ ---------------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ---------------------------------------------------------------------------- JUNTAN FIRMAS Y HUELLAS POR EL CACHORRO CONDENADO A MUERTE... -- Crónica TV |
September 28, 2009 Re: DMD svn and contract inheritance | ||||
---|---|---|---|---|
| ||||
Posted in reply to Leandro Lucarella | Leandro Lucarella wrote:
> http://www.dsource.org/projects/dmd/timeline
Thanks Walter.
;)
Now, thanks to the public svn we can track changes easily. This will help development of gdc too!
Btw today Michael merged dmd 1.035 and i'm close to finish dmd 2.015
See you.
|
September 28, 2009 Re: DMD svn and contract inheritance | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vincenzo Ampolo | Vincenzo Ampolo wrote:
> Now, thanks to the public svn we can track changes easily. This will help development of gdc too!
I'm glad you guys have picked up gdc.
There are some tricky bits to doing contract inheritance, I hope gdc and ldc don't have trouble with it.
|
September 30, 2009 Re: DMD svn and contract inheritance | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vincenzo Ampolo | You guys are doing awesome job with GDC, thank you _VERY MUCH_! GDC is the only D2 compiler for 64bit architecture... |
September 30, 2009 Re: DMD svn and contract inheritance | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dejan Lekic | Dejan Lekic wrote:
> You guys are doing awesome job with GDC, thank you _VERY MUCH_!
>
> GDC is the only D2 compiler for 64bit architecture...
Actually, there are no D2 compilers for 64 bit. GDC's support for D2 is very minimal, I don't know how it compares to LDC's, but I'd guess they were about the same (GDC might be slightly further ahead actually, I've never tried it). Either way, DMD is pretty much the only choice for a D2 compiler currently.
|
October 01, 2009 Re: DMD svn and contract inheritance | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
<snip>
> There are some tricky bits to doing contract inheritance, I hope gdc and ldc don't have trouble with it.
What tricky bits are those?
Stewart.
|
October 01, 2009 Re: DMD svn and contract inheritance | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stewart Gordon | Stewart Gordon wrote:
> Walter Bright wrote:
> <snip>
>> There are some tricky bits to doing contract inheritance, I hope gdc and ldc don't have trouble with it.
>
> What tricky bits are those?
It's outlined in the code comments, but it's implemented by making the contract code a nested function. The overriding function calls those nested functions of the overridden function(s). In order for this to work successfully, the 'this' pointer and the stack parameters must wind up in the same relative position on the stack.
|
October 02, 2009 Re: DMD svn and contract inheritance | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Walter Bright wrote:
> Stewart Gordon wrote:
>> Walter Bright wrote:
>> <snip>
>>> There are some tricky bits to doing contract inheritance, I hope gdc and ldc don't have trouble with it.
>>
>> What tricky bits are those?
>
> It's outlined in the code comments, but it's implemented by making the contract code a nested function. The overriding function calls those nested functions of the overridden function(s). In order for this to work successfully, the 'this' pointer and the stack parameters must wind up in the same relative position on the stack.
I'm still none the wiser about why it absolutely has to be done like this instead of the simpler solution I proposed years ago. But in any case, thank you for finally getting round to it!
Stewart.
|
Copyright © 1999-2021 by the D Language Foundation