On Tuesday, 16 March 2021 at 07:43:18 UTC, drug wrote:
That means that you GZippedRange should provide opSlice
operator and should be a narrow string (string of char or wchar)
Yes, I should have looked more carefully at the doc, I was
assuming splitter would accept a simple input range, but it
I came across this problem as I was trying to see if could write
a quick range-based solution with std.zlib to do what was asked
about in a different Learn forum post - read a gzipped file.
This seems like it should work:
import std.stdio, std.algorithm, std.zlib;
import std.range.primitives;
On Thursday, 11 March 2021 at 22:10:04 UTC, David wrote:
I wasn't aware that object files could be manipulated like the
strip manual page - thx for the heads up.
With the caveats that the linked post is almost 14 years old, I
can't try this command myself, and the ldc solution is probably
pre
So, that message is a pretty cryptic, but the problem there is
that map does its thing at runtime, but partial is a template and
must be instantiated at compile time.
Instead you can use std.meta.staticMap, by doing something like
this:
void main()
{
import std.stdio;
import st