Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #134 (closed defect: fixed)

Opened 1 month ago

Last modified 1 month ago

classinfo for interfaces not the same as dmd

Reported by: ChristianK Assigned to: lindquist
Priority: major Milestone: Beta
Component: Version: Both
Keywords: interface classinfo Cc:

Description

If I run tests/mini/s.d with dmd, I get

classinfo test
ci = s.TheClassOne
ci.interfaces.length = 0
ci = s.TheClassTwo
ci.interfaces.length = 1
i[0] = s.Inter2
ci = s.InterOne
ci = s.Inter2
ci = s.TheClassTwo

and if I run it with ldc, the result is

classinfo test
ci = s.TheClassOne
ci.interfaces.length = 1
i[0] = s.InterOne
ci = s.TheClassTwo
ci.interfaces.length = 2
i[0] = s.InterOne
i[1] = s.Inter2
ci = s.InterOne
ci = TypeInfo_l
ci = <garbage>

I think this ought to be consistent (and the last two casts need to be fixed, too)

Change History

12/01/08 12:34:53 changed by lindquist

  • status changed from new to closed.
  • resolution set to fixed.

fixed in rev [816]

Copyright © 2008, LDC Development Team.