2166 – More stuff that doesn't compile in Phobos

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2166 - More stuff that doesn't compile in Phobos
Summary: More stuff that doesn't compile in Phobos
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P2 normal
Assignee: Walter Bright
URL:
Keywords:
Depends on:
Blocks:
Reported: 2008年06月24日 06:22 UTC by Ary Borenszweig
Modified: 2014年03月01日 00:35 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Ary Borenszweig 2008年06月24日 06:22:55 UTC
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);
Comment 1 Walter Bright 2008年06月27日 16:44:17 UTC
Don's right. For some reason the fix is in 2.0 Phobos, but is not in 1.0.
Comment 2 Walter Bright 2008年07月09日 22:44:09 UTC
Fixed dmd 1.032


AltStyle によって変換されたページ (->オリジナル) /