On Thursday, 18 April 2013 at 17:42:53 UTC, JN wrote:
On Thursday, 18 April 2013 at 17:36:10 UTC, gedaiu wrote:Hi,how i can control what writeln outputs when I pass an object parameter?Thanks, BogdanYou can override the toString() method, like this http://dpaste.dzfl.pl/db7dbe28
i've done that but i get this error:Error: function base.Value.Value.toString cannot override a non-virtual function Error: function base.Value.Value.toString override only applies to class member functions
