[PD-dev] [ pure-data-Bugs-1984672 ] numbers in comments are not kept as literals

SourceForge.net noreply at sourceforge.net
Mon Feb 15 07:37:31 CET 2010


Bugs item #1984672, was opened at 2008-06-04 19:21
Message generated for change (Comment added) made by stffn
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1984672&group_id=55736

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: puredata
Group: v0.42
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: stffn (stffn)
Assigned to: Nobody/Anonymous (nobody)
Summary: numbers in comments are not kept as literals

Initial Comment:
...but only if it's followed by a number unless it's 0's then one 0 is kept. Try to open this patch (also attached):

#N canvas 50 50 200 370 missing_0s.pd 10;
#X text 50 10 011;
#X text 50 40 foo;
#X text 50 70 0ff;
#X text 50 100 0 ff;
#X text 50 130 0;
#X text 50 160 01;
#X text 50 190 0 1;
#X text 50 220 0 ;
#X text 50 250 00;
#X text 50 280 02;
#X text 50 310 000;
#X text 50 340 0000;


It's in Pd-0.41-4 and Pd-extended-0.40.3-RC1 on Intel powered Mac OS X 




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

>Comment By: stffn (stffn)
Date: 2010-02-15 07:37

Message:
This seams to be a feature. Miller writes:

"It's unfortunate, but it's in fact a 'feature' - 1. is a number and all
numbers are printed in their 'simplest' form :)"

Cf. http://lists.puredata.info/pipermail/pd-list/2010-02/076005.html

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

Comment By: stffn (stffn)
Date: 2009-02-05 08:26

Message:
Still there in 0.42-3

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

Comment By: IOhannes m zmlnig (zmoelnig)
Date: 2008-08-21 09:49

Message:
Logged In: YES 
user_id=564396
Originator: NO

the problem is,that numbers in comments are not kept as literals (strings,
symbols) but are really interpreted as numbers, thus "019" is equivalent to
"19".
the same problem occurs if you have large numbers 8000000001 which will be
stripped to 8e09 (like everywhere else in Pd)

the workaround for this is to make sure that these numbers are really read
as symbols, e.g. by adding quotes (or other non-numerical characters):
#X text 50 310 "000";


i changed the name from "0 in start of comment gets stripped off..."

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=478070&aid=1984672&group_id=55736




More information about the Pd-dev mailing list