Semantics of range::put

Oliver Kanai oliverkania at googlemail.com
Wed Aug 5 02:17:06 PDT 2009


I found out that an "appender" or operator ~= will work,
but still do not understand why put makes the program terminate.

Oliver Kanai Wrote:

> Hello,
> according to my understanding of the "put" method for ranges, which is part of the output-range interface, the following should work :
> 
> private string[] m_arrHalloStrings = ["Hallo", "Du", "Da", "wie", "?"];
> m_arrHalloStrings.put("Hallo");
> 
> it compiles but does not execute:
> the compiler gives the message 
> 
> core.exception.AssertError at std.array(256): Assertion failure
> 
> Best regards, Oliver
> 
> 



More information about the Digitalmars-d-learn mailing list