How to foreach over a DList?

monarch_dodra monarchdodra at gmail.com
Tue Apr 1 06:55:04 PDT 2014


On Tuesday, 1 April 2014 at 13:54:00 UTC, monarch_dodra wrote:
> In contrast, if you *pass* "1" to the DList, you lose that 
> info, and the DList will complain that you are trying to assign 
> an int to a ubyte.

EDIT: The issue is actually one of template constraint, but it's
essentially equivalent. Without context you can't assign an int
to a ubyte.


More information about the Digitalmars-d-learn mailing list