http://d.puremagic.com/issues/show_bug.cgi?id=5686
--- Comment #1 from changlon chang...@gmail.com 2011-03-03 00:27:11 PST ---
update test case:
-
class Test2(string name, string file = __FILE__, ptrdiff_t line = __LINE__){
static assert( line != __LINE__ -1 );
http://d.puremagic.com/issues/show_bug.cgi?id=5687
--- Comment #1 from Lars T. Kyllingstad bugzi...@kyllingen.net 2011-03-03
00:27:42 PST ---
I've found the cause for this: 1.2 is a double, and should be formatted as
such, but it is converted to a real internally in std.format.doFormat().
I
http://d.puremagic.com/issues/show_bug.cgi?id=5656
Don clugd...@yahoo.com.au changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=4379
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||jens.k.muel...@gmx.de
---
http://d.puremagic.com/issues/show_bug.cgi?id=5688
Summary: Poor optimization of (long 1)
Product: D
Version: D1 D2
Platform: Other
OS/Version: Windows
Status: NEW
Severity: enhancement
Priority: P2
http://d.puremagic.com/issues/show_bug.cgi?id=5684
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||clugd...@yahoo.com.au
---
http://d.puremagic.com/issues/show_bug.cgi?id=4750
Brad Roberts bra...@puremagic.com changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=5689
Summary: [64-Bit] uniform() fails with -profile
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Keywords: wrong-code
Severity: normal
http://d.puremagic.com/issues/show_bug.cgi?id=5687
Don clugd...@yahoo.com.au changed:
What|Removed |Added
CC||clugd...@yahoo.com.au
---
http://d.puremagic.com/issues/show_bug.cgi?id=5687
--- Comment #3 from Don clugd...@yahoo.com.au 2011-03-03 01:17:33 PST ---
On Windows:
import std.stdio;
import std.string;
void main()
{
writefln(%a, 1.2);
writeln(format(%a, 1.2));
}
---
0x1.3p+0
0x1.3p+0
http://d.puremagic.com/issues/show_bug.cgi?id=5687
--- Comment #4 from Lars T. Kyllingstad bugzi...@kyllingen.net 2011-03-03
01:57:22 PST ---
(In reply to comment #2)
Is it actually true that %A on Linux for doubles always begins with 0x1. ?
Having tested with a large number of random
http://d.puremagic.com/issues/show_bug.cgi?id=5686
Steven Schveighoffer schvei...@yahoo.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5686
--- Comment #4 from changlon chang...@gmail.com 2011-03-03 06:45:53 PST ---
The lineno shoule be the lineno where template is be instantiated, not where it
be declared .
for template and function template it is working . for class template
http://d.puremagic.com/issues/show_bug.cgi?id=5686
--- Comment #5 from changlon chang...@gmail.com 2011-03-03 06:50:13 PST ---
---
ptrdiff_t Test1( string file = __FILE__, ptrdiff_t line = __LINE__)(){
pragma(msg, line.stringof);
return line ;
}
class
http://d.puremagic.com/issues/show_bug.cgi?id=5686
--- Comment #6 from Steven Schveighoffer schvei...@yahoo.com 2011-03-03
07:16:34 PST ---
With some testing, I discovered that it's the act of explicit instantiation
that causes the line number to be tied to the declaration line:
ptrdiff_t
http://d.puremagic.com/issues/show_bug.cgi?id=5688
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5687
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5691
Summary: walkLength() compatible with opApply()
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
http://d.puremagic.com/issues/show_bug.cgi?id=5691
Jonathan M Davis jmdavisp...@gmx.com changed:
What|Removed |Added
Keywords|rejects-valid |
http://d.puremagic.com/issues/show_bug.cgi?id=5691
--- Comment #3 from bearophile_h...@eml.cc 2011-03-03 14:38:46 PST ---
(In reply to comment #2)
to count the items of a lazy range
I meant lazy iterable.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
---
http://d.puremagic.com/issues/show_bug.cgi?id=5692
Summary: Printing complex numbers with negative imaginary part
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: wrong-code
Severity:
http://d.puremagic.com/issues/show_bug.cgi?id=5691
--- Comment #4 from Jonathan M Davis jmdavisp...@gmx.com 2011-03-03 14:47:19
PST ---
And since when is a range created by opApply? It's not a range until it's a
type with the appropriate functions on it. Sure, you could feed a struct with
http://d.puremagic.com/issues/show_bug.cgi?id=5691
Andrei Alexandrescu and...@metalanguage.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5621
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
CC|
http://d.puremagic.com/issues/show_bug.cgi?id=5691
--- Comment #6 from bearophile_h...@eml.cc 2011-03-03 16:15:35 PST ---
(In reply to comment #5)
We could define some algorithms to work with opApply, but that would blow up
the size of std.algorithm
I agree that std.algorithm already
http://d.puremagic.com/issues/show_bug.cgi?id=5691
--- Comment #8 from Jonathan M Davis jmdavisp...@gmx.com 2011-03-03 16:38:57
PST ---
Honestly, whenever I see anyone discussing opApply, my first reaction is to
question why they're using it in the first place. In almost all cases, ranges
do
http://d.puremagic.com/issues/show_bug.cgi?id=5691
--- Comment #9 from bearophile_h...@eml.cc 2011-03-03 16:54:17 PST ---
(In reply to comment #7)
Instead you may want to use the range interface and benefit of walkLength and
others.
The semantics of opApply() is inverted compared to the
http://d.puremagic.com/issues/show_bug.cgi?id=5693
Summary: Problem with address of template struct opCall
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: ice-on-invalid-code
http://d.puremagic.com/issues/show_bug.cgi?id=5688
--- Comment #2 from Don clugd...@yahoo.com.au 2011-03-03 17:52:46 PST ---
(In reply to comment #1)
Interestingly, if the code is written as:
bool foo(long v)
{
return (v 1) == 1;
}
the code generated is:
mov
http://d.puremagic.com/issues/show_bug.cgi?id=5647
Walter Bright bugzi...@digitalmars.com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://d.puremagic.com/issues/show_bug.cgi?id=5517
--- Comment #2 from Don clugd...@yahoo.com.au 2011-03-03 23:46:40 PST ---
Some further detail: 0xF4, the HLT opcode, is a privileged instruction; it
doesn't actually get executed. Instead, a Privileged Instruction hardware
exception is raised.
31 matches
Mail list logo