digitalmars.D.bugs - [Issue 2896] New: std.demangle example does not work
- d-bugmail puremagic.com (27/27) Apr 25 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2896
- d-bugmail puremagic.com (10/10) Apr 25 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2896
http://d.puremagic.com/issues/show_bug.cgi?id=2896 Summary: std.demangle example does not work Product: D Version: 2.027 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: bugzilla digitalmars.com ReportedBy: dhasenan gmail.com mang.d(10): Error: function core.stdc.stdio.fgetc (_iobuf* stream) does not match parameter types (File) mang.d(10): Error: cannot implicitly convert expression (stdin) of type File to _iobuf* mang.d(19): Error: function std.demangle.demangle (immutable(char)[] name) does not match parameter types (char[]) mang.d(19): Error: cannot implicitly convert expression (buffer) of type char[] to immutable(char)[] The former can be solved by importing std.c.stdio and using std.c.stdio.stdin in the call to fgetc. The latter problem is probably best resolved by having demangle take a const(char)[] rather than a string; otherwise the example program does a *lot* more allocation. And while we're at it, we could use a keyword for documentation. --
Apr 25 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2896 smjg iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg iname.com Status|NEW |RESOLVED Resolution| |DUPLICATE *** This bug has been marked as a duplicate of 2445 *** --
Apr 25 2009