Re: D1: Error: function ... cannot have an in contract when overriden function

2015-02-16 Thread jicman via Digitalmars-d-learn
On Monday, 16 February 2015 at 15:10:29 UTC, Kagamin wrote: http://digitalmars.com/d/1.0/dbc.html in is precondition, body is function body, which expects precondition to pass. Muchas gracias. (That is, "Thanks much", for the Spanish Speaking Challenged Community. :-))

Re: D1: Error: function ... cannot have an in contract when overriden function

2015-02-16 Thread Kagamin via Digitalmars-d-learn
http://digitalmars.com/d/1.0/dbc.html in is precondition, body is function body, which expects precondition to pass.

Re: D1: Error: function ... cannot have an in contract when overriden function

2015-02-16 Thread jicman via Digitalmars-d-learn
On Monday, 16 February 2015 at 07:33:54 UTC, Kagamin wrote: It checks that you don't set both text and image, because the button doesn't support it. Yes, I get that. :-) I am talking about the in { } and also the body { } how are these interpreted by the compiler? They are both part of the f

Re: D1: Error: function ... cannot have an in contract when overriden function

2015-02-15 Thread Kagamin via Digitalmars-d-learn
It checks that you don't set both text and image, because the button doesn't support it.

Re: D1: Error: function ... cannot have an in contract when overriden function

2015-02-15 Thread jicman via Digitalmars-d-learn
On Saturday, 8 November 2014 at 01:59:56 UTC, Adam D. Ruppe wrote: If it is just that one error, you could always just comment out the in contract and recompile. Sorry it took so long. Extremely busy, but anyway, this is the piece of the code that is causin the problem: override void text(D

Re: D1: Error: function ... cannot have an in contract when overriden function

2014-11-07 Thread Adam D. Ruppe via Digitalmars-d-learn
If it is just that one error, you could always just comment out the in contract and recompile.