expression results

Ary Manzana ary at esperanto.org.ar
Tue Apr 17 07:00:53 PDT 2007


bobef escribió:
> Hello. I have some notes regarding the expression results.
> 
> Multiline strings are impossible to parse. Consider this example
> 
> char[] str="line 1\n line \" more";
> 
> In ddbg
> = str
> will look something like this
> 
> ->= str
> "line1
>  line " more"
> 
> so the end could not be determined.
> Also char ch=255; results "4invalid utf8 sequence" in the results.
> I suggest the type of the variable to be indicated in the output with one letter including the string length. Then the chars could be printed as decimal/hex value and if they are valid utf8 the symbol itself could be printed too.

The above string could be shown by ddbg as:

"line 1\n line \" more"


More information about the Digitalmars-d-debugger mailing list