Patches item #1544041, was opened at 2006-08-21 11:55 Message generated for change (Comment added) made by eighthave You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1544041...
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: wishlist Status: Open Resolution: None Priority: 5 Private: No Submitted By: IOhannes m zmölnig (zmoelnig) Assigned to: Miller Puckette (millerpuckette) Summary: [initbang]/[closebang] for patch constructor/destuctor
Initial Comment: attached is a patch that adds a new object [initbang] to Pd.
This object is similar to [loadbang], however it gets executed just after the rest of the abstraction is built and _before_ the parent of the abstraction is finished.
reasoning: this object allows abstractions to have a runtime constructor (similar to the <object>_new() constructor of c-externals); the [initbang] is emitted before the parent patch is finalized, thus allowing the abstraction to add inlets/outlets depending on its arguments).
caveats: a similar method for the abstraction _destructor_ is still missing.
i haven't implemented an "initbang" message to the canvas to rerun the initialization again.
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2006-10-30 00:11
Message: Logged In: YES user_id=27104
This is huge, it allows Pd objects to dynamically generate inlets and outlets and have then work properly.
----------------------------------------------------------------------
Comment By: IOhannes m zmölnig (zmoelnig) Date: 2006-08-22 10:29
Message: Logged In: YES user_id=564396
for reasoning why this is needed, see the pd-dev archives
----------------------------------------------------------------------
Comment By: IOhannes m zmölnig (zmoelnig) Date: 2006-08-22 10:25
Message: Logged In: YES user_id=564396
the 2nd patch additionally implements a [closebang] object, which gets called just before a canvas is destroyed.
note that the patch (cloeinitbang.diff) holds both the closebang- and the initbang-changes; do not! apply both patches
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=1544041...
SourceForge.net wrote:
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2006-10-30 00:11
Message: Logged In: YES user_id=27104
This is huge, it allows Pd objects to dynamically generate inlets and outlets and have then work properly.
please note, that (afair) the patch itself is NOT huge; probably the benefits are...
mfg.asdr IOhannes
On Oct 30, 2006, at 4:08 AM, IOhannes m zmoelnig wrote:
SourceForge.net wrote:
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2006-10-30 00:11
Message: Logged In: YES user_id=27104
This is huge, it allows Pd objects to dynamically generate inlets and outlets and have then work properly.
please note, that (afair) the patch itself is NOT huge; probably the benefits are...
Sorry, that's what I meant, I suppose I should speak better English in these contexts...
.hc
------------------------------------------------------------------------
All information should be free. - the hacker ethic
Hans-Christoph Steiner wrote:
This is huge, it allows Pd objects to dynamically generate inlets and outlets and have then work properly.
please note, that (afair) the patch itself is NOT huge; probably the benefits are...
Sorry, that's what I meant, I suppose I should speak better English in these contexts...
not that i have not noted this (wow, i'm going nots). but to make miller accept this patch, i think we should not obfuscate the tiniest word, in order to not scare him away.
mfga.sdr IOhannes