[Issue 2763] New: std.mangle.demangle not translating 'ya'

2009-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2763

   Summary: std.mangle.demangle not translating 'ya'
   Product: D
   Version: 2.026
  Platform: PC
OS/Version: Windows
Status: NEW
  Severity: normal
  Priority: P2
 Component: Phobos
AssignedTo: bugzi...@digitalmars.com
ReportedBy: steve.te...@britseyeview.com


If I use demangle on _D6plugin8generateFiiZAya, I get:

ya[] plugin.generate(int, int)


-- 



[Issue 2764] New: Skip link if main not found

2009-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2764

   Summary: Skip link if main not found
   Product: D
   Version: 2.026
  Platform: PC
OS/Version: Windows
Status: NEW
  Severity: normal
  Priority: P2
 Component: DMD
AssignedTo: bugzi...@digitalmars.com
ReportedBy: steve.te...@britseyeview.com


If when compiling a bunch of D files none is found to contain main(), skip the
link and output a simple message.


-- 



[Issue 2764] Skip link if main not found

2009-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2764





--- Comment #1 from bugzi...@digitalmars.com  2009-03-27 03:12 ---
I thought some more about this, and there's a problem. A module may not have a
main(), but it may reference another function in a library that does have a
main().


-- 



[Issue 2757] resource management in a timely manner

2009-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2757





--- Comment #1 from bugzi...@digitalmars.com  2009-03-27 03:38 ---
What is the enhancement request?


-- 



[Issue 2551] std.format on invariant values : error and segmentation fault

2009-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2551





--- Comment #1 from dsim...@yahoo.com  2009-03-27 11:48 ---
The problem is the following code:

} else static if (is(const D == const(float))
  || is(const(D) == const(double))
  || is(const(D) == const(real))) { 
  // Do stuff.
} else // Similar stuff for more types.

The problem is that const(immutable(T)) seems to evaluate to immutable(T), not
const(T), as the following program demonstrates:

import std.stdio;

void main() {
immutable real foo = 1.0L;
alias const(typeof(foo)) T;
writeln(T.stringof);  // Prints immutable(real).
}

This can probably be fixed by changing is(const(T) == const someType) tests to
is(immutable(T) == immutable someType).


-- 



[Issue 2551] std.format on invariant values : error and segmentation fault

2009-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2551





--- Comment #2 from dsim...@yahoo.com  2009-03-27 14:28 ---
Created an attachment (id=294)
 -- (http://d.puremagic.com/issues/attachment.cgi?id=294action=view)
Patch for std.format problems.

Here's a patch that does what I suggested previously.  It seems to solve the
problem, and all of the std.format unittests still pass, except for the ones on
lines 2462 and 2464, which don't pass even without the patch.


-- 



[Issue 2200] std.string.format behaves wrong when passing an interface reference

2009-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2200


dsim...@yahoo.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE




--- Comment #2 from dsim...@yahoo.com  2009-03-27 19:43 ---


*** This bug has been marked as a duplicate of 535 ***


-- 



[Issue 535] writef doesn't work on interfaces

2009-03-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=535


dsim...@yahoo.com changed:

   What|Removed |Added

 CC||2kor...@gmail.com




--- Comment #3 from dsim...@yahoo.com  2009-03-27 19:43 ---
*** Bug 2200 has been marked as a duplicate of this bug. ***


--