http://d.puremagic.com/issues/show_bug.cgi?id=3147
--- Comment #6 from Sobirari Muhomori 2010-11-16
22:03:08 PST ---
There should be ints in shift asserts
---
static if(__traits(compiles, s=b+b))
{
static assert(__traits(compiles, b=i%b));
static assert(__traits(compiles, b=b>>i));
http://d.puremagic.com/issues/show_bug.cgi?id=2095
--- Comment #14 from Sobirari Muhomori 2010-11-16
21:55:25 PST ---
(In reply to comment #11)
> I think in this case runtime tests in nonrelease builds are better than
> nothing.
I'm afraid, there's nothing to test at runtime, and I thought th
http://d.puremagic.com/issues/show_bug.cgi?id=5199
--- Comment #5 from Sobirari Muhomori 2010-11-16
21:39:09 PST ---
Disambiguation will make it hard to copy empty slices... well... such operation
is not needed too much either.
---
foo[]=(cast(Foo[])null)[]; //copy null slice
foo[]=null; //sho
http://d.puremagic.com/issues/show_bug.cgi?id=5199
--- Comment #4 from Sobirari Muhomori 2010-11-16
21:34:06 PST ---
I'd rather say it's a dup of bug 3395.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
http://d.puremagic.com/issues/show_bug.cgi?id=3827
Steven Schveighoffer changed:
What|Removed |Added
CC||schvei...@yahoo.com
--- Comment
http://d.puremagic.com/issues/show_bug.cgi?id=3889
--- Comment #3 from Sobirari Muhomori 2010-11-16
21:30:44 PST ---
> foo(null);
> foo([]);
>
> // OK, int[]
> foo(cast(int[])null);
>
> // OK, int[]
> foo(cast(int[])[]);
>
> // Partially OK, inside foo 'a' is of t
http://d.puremagic.com/issues/show_bug.cgi?id=5228
--- Comment #1 from Jonathan M Davis 2010-11-16 20:55:47
PST ---
I feel like a moderate idiot. I didn't realize that you could get an
exception's message by accessing its public member variable msg. So, the
situation is not quite as bad as I t
http://d.puremagic.com/issues/show_bug.cgi?id=5199
--- Comment #3 from Walter Bright 2010-11-16
20:16:35 PST ---
Bearophile is correct that this is a duplicate of bug 3889, which is an
enhancement request.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
---
http://d.puremagic.com/issues/show_bug.cgi?id=3889
Walter Bright changed:
What|Removed |Added
CC||bugzi...@digitalmars.com
--- Comment #
http://d.puremagic.com/issues/show_bug.cgi?id=5199
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5216
bearophile_h...@eml.cc changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
--- Com
http://d.puremagic.com/issues/show_bug.cgi?id=5194
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5217
--- Comment #5 from Jonathan M Davis 2010-11-16 19:42:08
PST ---
Hmm. I think that I get what you're getting at, though it is a bit odd.
Certainly, requiring static functions is something different. I've never seen a
language do that. I'd stil
http://d.puremagic.com/issues/show_bug.cgi?id=3827
--- Comment #20 from bearophile_h...@eml.cc 2010-11-16 19:38:56 PST ---
(In reply to comment #19)
> (In reply to comment #17)
> > Not that there's any real use case for "this" "that" anyway. And those rare
> > use cases
>
> I use automatic joi
http://d.puremagic.com/issues/show_bug.cgi?id=5228
Summary: Add GetOptException (or similar) to std.getopt
Product: D
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority
http://d.puremagic.com/issues/show_bug.cgi?id=5216
nfx...@gmail.com changed:
What|Removed |Added
Status|RESOLVED|REOPENED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=3827
nfx...@gmail.com changed:
What|Removed |Added
CC||nfx...@gmail.com
--- Comment #19 fro
http://d.puremagic.com/issues/show_bug.cgi?id=5217
--- Comment #4 from Austin Hastings 2010-11-16 18:53:00
PST ---
Template constraints do not work. The problem is not "The input type must
behave in such-and-such manner," but rather "Here is a template for most, but
not all, of the class: you
http://d.puremagic.com/issues/show_bug.cgi?id=5227
Summary: X ^^ FP at compile-time
Product: D
Version: D2
Platform: All
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: enhancement
Priori
http://d.puremagic.com/issues/show_bug.cgi?id=5216
--- Comment #2 from Jonathan M Davis 2010-11-16 17:24:07
PST ---
I could have sworn that the online docs said that one of the main reasons for
/+ +/ was to comment out code, but regardless, it's not like you usually run
into /+ or +/ inside of
http://d.puremagic.com/issues/show_bug.cgi?id=3827
--- Comment #18 from Stewart Gordon 2010-11-16 17:15:03 PST ---
(In reply to comment #17)
> For example, if a is a string[], then a ~ "this" "that" and a ~ "this" ~
> "that"
> evaluate to different strings.
Different string arrays even.
--
http://d.puremagic.com/issues/show_bug.cgi?id=3827
Stewart Gordon changed:
What|Removed |Added
CC||s...@iname.com
--- Comment #17 from S
http://d.puremagic.com/issues/show_bug.cgi?id=2095
--- Comment #13 from bearophile_h...@eml.cc 2010-11-16 17:04:34 PST ---
Something about this topic:
http://blogs.msdn.com/b/ericlippert/archive/2007/10/17/covariance-and-contravariance-in-c-part-two-array-covariance.aspx
This is is an importan
http://d.puremagic.com/issues/show_bug.cgi?id=5217
--- Comment #3 from Jonathan M Davis 2010-11-16 17:01:57
PST ---
Do template constraints not work for you in this case?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because
http://d.puremagic.com/issues/show_bug.cgi?id=5216
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5226
Summary: indexOf() which takes a pred but no needle
Product: D
Version: unspecified
Platform: Other
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=5201
--- Comment #2 from Jonathan M Davis 2010-11-16 16:19:18
PST ---
Glancing at std.string.indexOf() again, it has different parameters than
std.algorithm - dealing with case sensitivity and whatnot. It also takes a
dchar rather than a string or
http://d.puremagic.com/issues/show_bug.cgi?id=3888
--- Comment #2 from Jonathan M Davis 2010-11-16 16:10:04
PST ---
I'd argue it would be nice to have both a function that returns before and one
that returns both before and after, but you could also argue that it would be
simpler just to have
http://d.puremagic.com/issues/show_bug.cgi?id=5217
--- Comment #2 from Austin Hastings 2010-11-16 16:00:37
PST ---
What I'm asking for is "abstract static". That is, a syntax for imposing a
requirement that a class (or struct) provide a static member function before it
can be instantiated.
In
http://d.puremagic.com/issues/show_bug.cgi?id=5093
simon changed:
What|Removed |Added
Attachment #812 is|0 |1
obsolete|
http://d.puremagic.com/issues/show_bug.cgi?id=3147
--- Comment #5 from Sobirari Muhomori 2010-11-16
14:22:01 PST ---
In any case
---
static if(__traits(compiles, s=b+b))
{
static assert(__traits(compiles, b=s%b));
static assert(__traits(compiles, s=s>>b));
static assert(__traits(co
http://d.puremagic.com/issues/show_bug.cgi?id=3147
--- Comment #4 from Sobirari Muhomori 2010-11-16
14:01:34 PST ---
---
l = cast(int)(s%b);
l = cast(short)(s%b);
---
What's the difference?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receivin
http://d.puremagic.com/issues/show_bug.cgi?id=3147
--- Comment #3 from Andrei Alexandrescu 2010-11-16
13:54:16 PST ---
The point is not to ascribe the smallest static type to the result. That would
break compatibility with C in many ways. All that happens is the compiler
tracks the range of th
http://d.puremagic.com/issues/show_bug.cgi?id=3147
--- Comment #2 from Sobirari Muhomori 2010-11-16
13:40:52 PST ---
Some asserts for modulus and shifts
---
byte b;
short s;
int i;
long l;
static assert(is(typeof(s%b)==byte));
static assert(is(typeof(i%s)==short));
static assert(is(typeof(b<>i
http://d.puremagic.com/issues/show_bug.cgi?id=2832
Jesse Phillips changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4638
Shin Fujishiro changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=5154
Shin Fujishiro changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=5154
--- Comment #2 from Shin Fujishiro 2010-11-16 13:04:06 PST
---
Fixed: http://www.dsource.org/projects/phobos/changeset/2170
Also fixed for interfaces and pointers to struct ranges.
--
Configure issuemail: http://d.puremagic.com/issues/userp
http://d.puremagic.com/issues/show_bug.cgi?id=5154
--- Comment #1 from Shin Fujishiro 2010-11-16 13:03:13 PST
---
Fixed: http://www.dsource.org/projects/phobos/changeset/2170
Also fixed for interfaces and pointers to struct ranges.
--
Configure issuemail: http://d.puremagic.com/issues/userp
http://d.puremagic.com/issues/show_bug.cgi?id=5133
Shin Fujishiro changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=5054
Shin Fujishiro changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=4445
Shin Fujishiro changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=5212
--- Comment #7 from bearophile_h...@eml.cc 2010-11-16 12:42:05 PST ---
One of the many posts of the relative thread:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=122157
(In reply to comment #6)
> Variad
http://d.puremagic.com/issues/show_bug.cgi?id=2809
--- Comment #7 from Sobirari Muhomori 2010-11-16
12:34:12 PST ---
> You don't need it at all. Just cast to unsigned, then >>.
> >>> is a ridiculous operator.
See bug 5225.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?
http://d.puremagic.com/issues/show_bug.cgi?id=5225
Summary: Signed right shift operator is ridiculous
Product: D
Version: D1 & D2
Platform: x86
OS/Version: Windows
Status: NEW
Severity: enhancement
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=3888
Shin Fujishiro changed:
What|Removed |Added
CC||rsi...@gmail.com
--- Comment #1 from
http://d.puremagic.com/issues/show_bug.cgi?id=5201
Jonathan M Davis changed:
What|Removed |Added
CC||jmdavisp...@gmx.com
--- Comment #1
http://d.puremagic.com/issues/show_bug.cgi?id=5212
--- Comment #6 from Sobirari Muhomori 2010-11-16
12:11:46 PST ---
Variadic arguments are arguments, and arguments are on the stack.
T[] is not a dynamic array, it's a slice. Messing python idioms into D, while
those idioms were not implemented
http://d.puremagic.com/issues/show_bug.cgi?id=4638
Shin Fujishiro changed:
What|Removed |Added
Status|NEW |ASSIGNED
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5224
--- Comment #1 from Aleksandar Ruzicic
2010-11-16 21:02:22 CET ---
tested now also under DMD 2.050, same results.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because:
http://d.puremagic.com/issues/show_bug.cgi?id=2809
--- Comment #6 from Sobirari Muhomori 2010-11-16
11:59:34 PST ---
Number literals are polysemous, right? So binary ops should work like this:
opBinary(l,r)
{
if(is(typeof(r)==polysemous))
{
opBinary(l,implicit_cast(typeof(l))r);
}
}
http://d.puremagic.com/issues/show_bug.cgi?id=5224
Summary: std.algorithm.remove!(SwapStrategy.unstable) doesn't
work
Product: D
Version: D2
Platform: x86_64
OS/Version: Windows
Status: NEW
Severity: norma
http://d.puremagic.com/issues/show_bug.cgi?id=2809
--- Comment #5 from Sobirari Muhomori 2010-11-16
11:53:02 PST ---
>short a(short b) { return b>>>cast(short)1; }
Shouldn't number literals work as smallest possible type and promoted as
needed?
Like here:
---
byte a=1;
---
--
Configure issue
http://d.puremagic.com/issues/show_bug.cgi?id=5223
--- Comment #1 from Max Samukha 2010-11-16 09:48:10
PST ---
Even simpler test-case:
struct S
{
this(int x)
{
}
void foo(S s = S(42))
{
}
}
void main()
{
S s;
s.foo(); // error
}
Error: more initializers than
http://d.puremagic.com/issues/show_bug.cgi?id=5223
Summary: [qtd] Cannot use default value with function parameter
of struct type
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severi
http://d.puremagic.com/issues/show_bug.cgi?id=5200
--- Comment #1 from jens.k.muel...@gmx.de 2010-11-16 09:28:38 PST ---
Somehow only the first message of the thread is available. See
http://www.digitalmars.com/d/archives/digitalmars/D/Call_to_immutable_method_during_immutable_construction_12162
http://d.puremagic.com/issues/show_bug.cgi?id=5222
Summary: label prepending block in 'ThenStatement' breaks
creating new scope
Product: D
Version: D1 & D2
Platform: x86
OS/Version: Windows
Status: NEW
Sev
http://d.puremagic.com/issues/show_bug.cgi?id=5221
--- Comment #2 from Iain Buclaw 2010-11-16 06:07:53 PST ---
(From update of attachment 815)
diff -ur src.orig/entity.c src/entity.c
--- src.orig/entity.c2010-03-31 01:26:18.0 +0100
+++ src/entity.c2010-11-16 14:01:58.423055202 +
http://d.puremagic.com/issues/show_bug.cgi?id=5221
--- Comment #1 from Iain Buclaw 2010-11-16 05:45:59 PST ---
Random examples of tests that fail on DMD:
static assert('\✓'==10003);
static assert('\≲'==8818);
static assert('\№'==8470);
static assert('\⌝'==8989);
static assert('\Ż'==379);
Reg
http://d.puremagic.com/issues/show_bug.cgi?id=5221
Summary: entity.c: Merge Walter's list with Thomas'
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Com
http://d.puremagic.com/issues/show_bug.cgi?id=2828
Don changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://d.puremagic.com/issues/show_bug.cgi?id=4414
Per �ngstr�m changed:
What|Removed |Added
CC||d-bugzi...@autark.se
--- Comment #4 fro
http://d.puremagic.com/issues/show_bug.cgi?id=2954
Don changed:
What|Removed |Added
Keywords||patch
CC|
63 matches
Mail list logo