About demangling

Regan Heath regan at netmail.co.nz
Thu Nov 1 10:19:23 PDT 2012


On Thu, 01 Nov 2012 16:25:56 -0000, Regan Heath <regan at netmail.co.nz>  
wrote:
> Adding writefln to demangle.d to debug the issue shows that args[1] is  
> "-" and that getopt is throwing the exception "invalid UTF-8 sequence".

I was wrong here, this line is the issue:
   stderr.writeln(e.msg);

For some reason, when run from command prompt and passed "-" as an arg it  
errors.

If I run it in debug mode in VisualD it works and outputs:
   Unrecognized option -

R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d-learn mailing list