[PD] PD OOP?

Mathieu Bouchard matju at artengine.ca
Wed Dec 15 15:49:53 CET 2010


On Wed, 15 Dec 2010, Jonathan Wilkes wrote:

> What exactly would "this" (#4) look like in Pd?
>>       1. Everything is global
>>       4. No concept of "this"

The use of the $0- prefix for receive-symbols ([r]) and variables ([v]).

It's a hack. I made a similar hack for making OOP in Tcl, but at least, 
Tcl allows me a simple, natural syntax for introducing my own procedure 
definition procedure, which allows me to implement macros so that 
_($this:stuff) is written @stuff.

That was with Tcl 8.4 ; In Tcl 8.6 there's finally a built-in object 
system, but I don't really remember what it looks like (I looked at it a 
bit in 2007, back when it was planned for Tcl 8.5).

  _______________________________________________________________________
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC


More information about the Pd-list mailing list