www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2166] New: More stuff that doesn't compile in Phobos

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2166

           Summary: More stuff that doesn't compile in Phobos
           Product: D
           Version: 1.032
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: ary esperanto.org.ar


I'm opening this bug after #2092 in order to have them separated.

std.stream
----------
Line 2419: em.fixBO(x3,12);

I get "std/stream.d: function fixBO (void*,uint) does not match parameter types
(ubyte[12],int)"
(and another error following that)

Same goes for line 2443.

I'm not sure about this, but casting the first argument (x3) to void* solved
the problem. Maybe a static ubyte[] was allowed to be implicitly cast to void*
in a previous D version.

Don suggestion was:

I think it should be .ptr, not a cast to void *, eg

    em.fixBO(x3.ptr,12);


-- 
Jun 24 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2166





------- Comment #1 from bugzilla digitalmars.com  2008-06-27 16:44 -------
Don's right. For some reason the fix is in 2.0 Phobos, but is not in 1.0.


-- 
Jun 27 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2166


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from bugzilla digitalmars.com  2008-07-09 22:44 -------
Fixed dmd 1.032


-- 
Jul 09 2008