On 02/08/2015 05:21 AM, Danny wrote:
The obvious
bool opEquals(immutable(C) b) immutable {
return value == b.value;
}
doesn't work. Probably have to override the one from Object ? Even
though I don't really use polymorphism here.
override bool opEquals(Object b) immutabl
Hi Ketmar,
Hi Ali,
thank you!
On Sunday, 8 February 2015 at 09:42:14 UTC, Ali Çehreli wrote:
spawn(&user, cucs, ubyte(3));
^to!
Other than that, it works.
(The Attributes are basically literal constants but the library
cannot know which are used in a given progra
On 02/07/2015 06:35 AM, Danny wrote:
> What I'm trying to do is save space by putting often-used Attrs into an
> array and just compressing references to those into 1 Byte in the other
> data structures where it's used (these other data structures are not
> thread-local).
The following is based
On 02/07/2015 06:35 AM, Danny wrote:
> I'm trying to use immutable class instances and that seems to be really
> difficult.
You are not alone. :)
Just some reminders:
- immutable is a requirement that may not be usable with every type.
- immutable string foo() {} is a member function that wor
On Sat, 07 Feb 2015 09:23:42 -0800, H. S. Teoh via Digitalmars-d-learn
wrote:
> On Sat, Feb 07, 2015 at 02:35:13PM +, Danny via Digitalmars-d-learn
> wrote:
> [...]
>> - gdc
>> A.d cc1d: ../../src/gcc/d/dfrontend/statement.c:293:
>> E
Hi,
I've filed it with gdcproject.org before reading your reply. Will
it be forwarded to issues.dlang.org or should I file it there as
well?
Also, it seems there's a new DMD release underway right now, does
it still happen with that? (I tried but can't get it to build -
doesn't seem to supp
On Sat, Feb 07, 2015 at 02:35:13PM +, Danny via Digitalmars-d-learn wrote:
[...]
> -
> gdc A.d
> cc1d: ../../src/gcc/d/dfrontend/statement.c:293:
> ErrorStatement::ErrorStatement(): Assertion `global.gaggedErrors ||
> global.errors' fa
Hi,
I'm trying to use immutable class instances and that seems to be
really difficult.
For example, with the following program I get an internal
compiler error:
-
import std.outbuffer : OutBuffer;
import std.typecons : Rebindable;