Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #427 (closed enhancement: duplicate)

Opened 17 years ago

Last modified 17 years ago

implicit Iterator casting

Reported by: mwarning Assigned to: sean
Priority: normal Milestone: 0.98 RC 2
Component: Core Functionality Version:
Keywords: Cc:

Description

interface A {}
class B : A {}

Iterator!(B) x = new /*...*/;
Iterator!(A) y = x;

This would enable the use of Iterators for APIs. (atm. i must use a wrapper class, not so nice)

Change History

04/22/07 02:27:28 changed by mandel

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

04/22/07 09:00:41 changed by larsivi

  • milestone set to 0.98 RC 2.