April 07, 2016
On 07.04.2016 13:59, rikki cattermole wrote:
> "abc" strings are not multiline.
> Use """abc""" for that purpose.

Wat. We're talking about, aren't we? In D, "abc" strings are multiline, and """abc""" is not a thing. `"""abc"""` is the same as `"" "abc" ""` is the same as `"" ~ "abc" ~ ""` is the same as `"abc"`.
April 08, 2016
On 08/04/2016 12:52 AM, ag0aep6g wrote:
> On 07.04.2016 13:59, rikki cattermole wrote:
>> "abc" strings are not multiline.
>> Use """abc""" for that purpose.
>
> Wat. We're talking about, aren't we? In D, "abc" strings are multiline,
> and """abc""" is not a thing. `"""abc"""` is the same as `"" "abc" ""`
> is the same as `"" ~ "abc" ~ ""` is the same as `"abc"`.

Ugh, 2.070.2 definitely has it still.
I have no idea when that changed....
April 07, 2016
On Thursday, 7 April 2016 at 12:43:54 UTC, rikki cattermole wrote:
> On 08/04/2016 12:39 AM, Suliman wrote:
>> On Thursday, 7 April 2016 at 12:30:59 UTC, rikki cattermole wrote:
>>> On 08/04/2016 12:19 AM, Kagamin wrote:
>>>> Create a range that would remove the newline characters from string,
>>>> then decode from that.
>>>
>>> Can confirm, its \n and \r that is causing the problems here.
>>
>> with:
>> std.file.write("output.png", Base64.decode(myimg.replace("\r\n", "")));
>>
>> I am getting same issue. But it should remove all new lines...
>
> ok split myimg value into another file, remove all \r and \n separately via e.g. tr.
> Then read it in, that's what I did.

Thanks! That is work!
April 07, 2016
On 07.04.2016 14:57, rikki cattermole wrote:
> Ugh, 2.070.2 definitely has it still.
> I have no idea when that changed....

I don't think """...""" ever was a thing. You could definitely put newlines in normal "..." literals since basically forever. And concatenation of adjacent "..." literals is also an old feature. I'm fairly certain that """abc""" has always meant ""~"abc"~"". It works, of course, but it's the same as just "abc".
1 2
Next ›   Last »