Why the hell doesn't foreach decode strings
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Oct 31 12:33:16 PDT 2011
On 10/31/11 8:20 AM, Steven Schveighoffer wrote:
>> Why doesn't that simple search work?
>>
>> foreach (line; stdin.byLine()) {
>> if (line.canFind("fiancé")) {
>> writeln("There it is.");
>> }
>> }
>
> I think Jonathan answered that quite well, nothing else to add...
I see this as a decoding primitive issue that can be resolved.
Andrei
More information about the Digitalmars-d
mailing list