[PD-dev] BUG: namespace prefixes broken in 0.40

Hans-Christoph Steiner hans at eds.org
Sun Oct 29 02:24:16 CEST 2006


Ok, so I just found something that may or may not be a problem, but  
its not clean at least.  Once you instantiate an object with the  
namespace prefix, that class gets added to the namespace.  For  
example, follow these steps:
_ _ _ _
|split| - no go
- - - -
[iemlib/split] - makes an object

[split] - makes another instance of iemlib's [split]

This isn't new, this happened in 0.39.2.  But I think its something  
to think about, and its related to IOhannes' patch.  In that patch,  
IIRC, the whole name with namespace prefix and class name is used at  
the classname, at least for the canvas name.  Perhaps that's what  
needs to happen throughout?

.hc

On Oct 27, 2006, at 11:48 AM, Miller Puckette wrote:

> Yep, I have to look at (and try to understand) that... I'll bump that
> up on my dolist :)
>
> cheers
> M
>
> On Fri, Oct 27, 2006 at 01:29:16AM -0400, Hans-Christoph Steiner  
> wrote:
>>
>> I did a quick check, seems to work again.  Will report again if there
>> are problems.
>>
>> How about the patch that IOhannes submitted a while aback making the
>> the astraction-canvas use the prefix and classname?  That is also
>> important since it puts objects written in Pd on the same footing at
>> C objects.
>>
>> http://sourceforge.net/tracker/index.php?
>> func=detail&aid=1403917&group_id=55736&atid=478072
>>
>> .hc
>>
>> On Oct 25, 2006, at 5:39 PM, Miller Puckette wrote:
>>
>>> This should now be fixed in CVS (branch stable_0_40)...
>>>
>>> cheers
>>> Miller
>>>
>>> On Fri, Oct 13, 2006 at 05:19:00PM -0400, Hans-Christoph Steiner
>>> wrote:
>>>>
>>>> I was just looking into the new canvas-based env and [declare]
>>>> stuff.  The canvas-specific path stuff is definitely a step in the
>>>> right direction.  But as it is now, namespace prefixes are totally
>>>> broken.   It is no longer possible to use [prefix/classname]  
>>>> syntax,
>>>> which is essential to the namespaces because it is the only way  
>>>> that
>>>> two classes with the same root classname could be used in the same
>>>> patch, i.e. like this, where each object is a different class:
>>>>
>>>> [prepend]
>>>> [cxc/prepend]
>>>> [cyclone/prepend]
>>>>
>>>> This is because with the new sys_onloadlist() functionality that
>>>> checks to see whether a class has already been loaded.  It only  
>>>> uses
>>>> the direct classname, not the prefix also.
>>>>
>>>> .hc
>>>>
>>>> ------------------------------------------------------------------- 
>>>> --
>>>> ---
>>>>
>>>> "[W]e have invented the technology to eliminate scarcity, but we  
>>>> are
>>>> deliberately throwing it away to benefit those who profit from
>>>> scarcity."        -John Gilmore
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> PD-dev mailing list
>>>> PD-dev at iem.at
>>>> http://lists.puredata.info/listinfo/pd-dev
>>
>>
>> --------------------------------------------------------------------- 
>> ---
>>
>> The arc of history bends towards justice.     - Dr. Martin Luther
>> King, Jr.
>>


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

Man has survived hitherto because he was too ignorant to know how to  
realize his wishes.  Now that he can realize them, he must either  
change them, or perish.    -William Carlos Williams






More information about the Pd-dev mailing list