August 05, 2009 Re: Semantics of range::put | ||||
---|---|---|---|---|
| ||||
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@std.array(256): Assertion failure
>
> Best regards, Oliver
>
>
|
Copyright © 1999-2021 by the D Language Foundation