Jump to page: 1 2 3
Thread overview
DMD svn and contract inheritance
Sep 27, 2009
Leandro Lucarella
Sep 27, 2009
Walter Bright
Sep 27, 2009
Leandro Lucarella
Sep 28, 2009
Vincenzo Ampolo
Sep 28, 2009
Walter Bright
Oct 01, 2009
Stewart Gordon
Oct 01, 2009
Walter Bright
Oct 02, 2009
Stewart Gordon
Oct 02, 2009
Walter Bright
Oct 02, 2009
Stewart Gordon
Oct 05, 2009
Kagamin
Sep 30, 2009
Dejan Lekic
Sep 30, 2009
Robert Clipsham
Oct 23, 2009
Dejan Lekic
Oct 05, 2009
Robert Clipsham
Oct 05, 2009
Walter Bright
Oct 06, 2009
BCS
Oct 06, 2009
Walter Bright
Oct 06, 2009
Robert Clipsham
Oct 06, 2009
Walter Bright
Oct 07, 2009
Leandro Lucarella
Oct 13, 2009
Moritz Warning
Oct 06, 2009
Don
Oct 06, 2009
Robert Clipsham
Oct 06, 2009
Christian Kamm
September 27, 2009
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
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
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
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
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
You guys are doing awesome job with GDC, thank you _VERY MUCH_!

GDC is the only D2 compiler for 64bit architecture...
September 30, 2009
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
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
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
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.
« First   ‹ Prev
1 2 3