[PD-dev] status of verbose() in 0.43?

Hans-Christoph Steiner hans at at.or.at
Tue Feb 15 16:15:33 CET 2011


On Feb 15, 2011, at 4:04 AM, IOhannes m zmoelnig wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2011-02-15 01:59, Hans-Christoph Steiner wrote:
>>
>> Hmm, this might be the problem, in doverbose():
>>
>> sys_vgui("::pdwindow::post %d {%s}\n", level+4, strnescape(upbuf, s,
>> MAXPDSTRING));
>>
>> Why is there level+4?  Why not just pass level straight thru?
>>
>
> because level#0==pd_error, level#1=error, level#2=post, ...
> or similar (and without looking at the code, i don't know what level#3
> is for)

I get the ranked levels, that stuff make sense.  I am wondering about  
the algorithm.  In both C and Tcl, the verbose() posting is adding 4  
to the level value, so that means if people are doing verbose(4, "my  
message"), it actually gets set to (8, "my message"), and from what I  
see, then it never gets printed, since the available display levels  
are 0-5.

.hc

>
> fgamdr
> IOhannes
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk1aQaEACgkQkX2Xpv6ydvQ9/gCffurcYLodCgIrY2ibhnfv1taj
> +qwAnieI23vNVLxjshHGXIJ/krRRwMB/
> =t561
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev



----------------------------------------------------------------------------

There is no way to peace, peace is the way.       -A.J. Muste





More information about the Pd-dev mailing list