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

Why is tango.io.UnicodeFile an island?

Moderators: kris

Posted: 05/29/07 03:39:38

By that, I mean: why isn't it derived from anything? I can create a UnicodeFile?, and read the entire contents, but I can't hook it up to the rest of the IO API.

Should this be implemented as a Filter or something?

I don't know why I'd make a new scripting language. I mean, I might as well just draw some lines in the sand with a stick.

Author Message

Posted: 06/02/07 07:08:23

UnicodeFile? is meant as a companion to File. The underlying UnicodeBom? code could be used to build an stream filter, but no-one has written one :)