[PD-dev] namespaces for send/receive

zmoelnig at iem.at zmoelnig at iem.at
Mon Nov 16 21:10:22 CET 2009


Quoting "Hans-Christoph Steiner" <hans at at.or.at>:

>
> I am in the process of working on my 'framesync' library, and I just  
>  had a thought that I am not sure has come up before.  Lots of  
> times,  we want to use send/receives in reusable code, but with a  
> global  namespace, there is the potential for nameclashes.  So I  
> propose that  for libraries, we make it a 'best practice' to use the  
> same namespace  prefix as you would for loading an object.
>
> For example, this 'framesync' library, I need to send the FPS  
> (Frames  Per Second) to all the objects, so it needs to be a global  
> send.  So  just like I could do [framesync/fstabplay~]  the internal  
> send/receive  would be [send framesync/fps] and [receive  
> framesync/fps].

while you are there, i would propose to use "/foo/bar" rather than "foo/bar".

while this doesn't fully match the [foo/bar] idiom for object-names,  
it does fit nicely into OSC.

mfgasdr
IOhannes



gfamnsdr
IOhannes

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1718 bytes
Desc: ?ffentlicher PGP-Schl?ssel
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20091116/aa8e09ad/attachment.key>


More information about the Pd-dev mailing list