Function calls
Michiel Helvensteijn
m.helvensteijn.remove at gmail.com
Thu Jan 28 14:06:05 PST 2010
Bill Baxter wrote:
>> byLine() is a function. It changes the state of stdin. Calling it
>> consecutively will in general result in different return values. If there
>> were two guys: stdin.currentLine (property) and stdin.nextLine(), it
>> would be a different story.
>
> That's not how it works, I think.
> Just calling byLine() by itself only returns a range struct.
> Consuming things from that range is what changes the state of stdin.
Ah, my bad. I was guessing. Still, returning a handle from a property that
can change the state of the originating object is.. iffy.
--
Michiel Helvensteijn
More information about the Digitalmars-d
mailing list