Regarding std.array.Appender

Jonathan M Davis jmdavisProg at gmx.com
Wed Feb 29 18:01:52 PST 2012


On Wednesday, February 29, 2012 20:53:04 Jonathan M Davis wrote:
> On Wednesday, February 29, 2012 20:25:35 bearophile wrote:
> > Do you know why std.array.Appender defines a "put" method instead of
> > overloading the "~=" operator?
> 
> put is a function on output ranges, and Appender is an output range.

Also, given that it doesn't define ~ (and it wouldn't really make sense for it 
to), it would be very weird IMHO to define ~=.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list