> On Wed, 11 Mar 2015 06:22:32 +, sclytrack wrote:
>> - You can include C library headers directly in your .ec code, without
>> any special keyword (like extern "C" in C++)
On Wed, Mar 11, 2015 at 1:59 AM, ketmar via Digitalmars-d-learn
wrote:
> either i missed something, misunderstood what h
On Fri, Dec 13, 2013 at 4:10 AM, comco wrote:
> Imagine a world in which a simple 'if' has the semantics of a static if, if
> the condition is evaluable at CT. Is this a world you would rather live in?
Even so, I would still want static if, so that I would get a compile
time error if I mistaken t
TDPL, page 37, says:
"Hex strings are useful for defining raw data; the compiler makes
no attempt whatsoever to interpret the contents as Unicode
characters or anything else but hexadecimal digits."
But:
static immutable (char[32]) s0 = x"";// compiles
static strings
On Wednesday, 27 November 2013 at 02:49:19 UTC, Adam D. Ruppe
wrote:
The slice operator, [], returns a view into the array that can
be advanced by the encode function as needed.
Thanks.
Are slices passed (and returned) by value or by reference?
Hi,
The following does not compile, and I do not understand what I am
doing wrong.
import std.base64;
ubyte[] s0 = ['H','e','l','l','o'];
char[40] s1;
void main () {
Base64.encode (s0, s1);
}
The compile error is:
[snip]/src/phobos/std/range.d(614): Error: static assert "Cannot
put a im