[Issue 4648] "In" contracts in interfaces missbehaving

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 4 20:42:18 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=4648


Mike Shulman <viritrilbia+d at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |viritrilbia+d at gmail.com


--- Comment #1 from Mike Shulman <viritrilbia+d at gmail.com> 2011-06-04 20:37:50 PDT ---
'Out' contracts in interfaces seem to have the same problem: the arguments
passed to the function get replaced by garbage.

On my system (DMD v2.053 on Ubuntu) the precise value of the garbage appears to
depend on what data members exist in the class which implements the interface. 
E.g. Andrej's code writeln outputs "0" for me, but if I add "int x;" to the
definition of Base, it outputs instead "135115244".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list