Heya. I'm working on a simple units-of-measure implementation in
DMD 2.066.0, and it doesn't seem to like the signature of my '*'
operator below. I'm afraid I don't understand what the error
description is trying to tell me. Here's a reduced case:
public struct UnitDef(string unitString) {
On Friday, 22 August 2014 at 20:42:49 UTC, Yota wrote:
Heya. I'm working on a simple units-of-measure implementation
in DMD 2.066.0, and it doesn't seem to like the signature of my
'*' operator below. I'm afraid I don't understand what the
error description is trying to tell me. Here's
On Friday, 22 August 2014 at 21:38:29 UTC, Ali Çehreli wrote:
So, the correct check should use std.traits.TemplateOf first:
auto opBinary(string op, That)(That rhs)
if (isInstanceOf!(TemplateOf!UnitDef, That)
op == *) {
return UnitDef!(unitString ~ ~
On Thursday, 10 July 2014 at 15:14:21 UTC, Sean Campbell wrote:
On Thursday, 10 July 2014 at 13:51:22 UTC, Rikki Cattermole
wrote:
On 11/07/2014 1:18 a.m., Sean Campbell wrote:
perhaps I'd better state what I'm doing.
i have an array of 4 bytes and a want to convert them to a 32
bit
int
and
On Friday, 9 August 2013 at 17:35:18 UTC, monarch_dodra wrote:
On Friday, 9 August 2013 at 15:28:10 UTC, Manfred Nowak wrote:
michaelc37 wrote:
WTF - -1 is greater than 7
From the docs:
It is an error to have one operand be signed and the other
unsigned for a
, =, or = expression.
On Wednesday, 17 July 2013 at 09:48:06 UTC, monarch_dodra wrote:
I find it disturbing that the built-in property keys would
dup an entire array, and then copy all the keys into that
array, whereas the function byKeys() will simply allow you to
iterate on the keys.
keys is in blatant