On 23.06.2017 21:04, H. S. Teoh via Digitalmars-d wrote:
On Fri, Jun 23, 2017 at 06:57:57PM +0000, MysticZach via Digitalmars-d wrote:
On Friday, 23 June 2017 at 18:20:23 UTC, Moritz Maxeiner wrote:
On Friday, 23 June 2017 at 18:03:26 UTC, Timon Gehr wrote:
[...]
Agreed. Implementation:
https://github.com/dlang/dmd/compare/master...tgehr:contract-syntax
(At most one contract of each type is supported. It is not very
hard to implement multiple contracts, but this requires touching
semantic analysis.)
Holy ***. I set aside some time this weekend to try implementing
this myself as an exercise, but oh well. Thanks!
I know! I'd say it'll take me a good deal longer to rewrite the DIP
than he's taking to implement it!
Yeah! Kudos to Timon for the quick implementation!
Thanks! :)
Support for multiple contracts:
https://github.com/dlang/dmd/compare/master...tgehr:contract-syntax
This will increase
the odds of this DIP being accepted, I'm sure. :-)
T