Would you ever say to someone writing an application in C++:
"Think about converting some of your functions to macros"???
That is just not an option.
hmm, since when are macros bad? especially in C (not so much in C++) i could imagine situations where i would tell somebody to "convert some of your functions to macros".
I knew somebody would say that :) You're perfectly right, my example was a bit weak, however I guess you understand what I meant. You can convert just SOME of your functions to macros - I'm no C++ expert but I guess you can do that with very "small" functions. You'll do it in a few special cases to optimize very critical portions of code, you can't adopt it as a general programming practice and convert MOST of your functions to macros, and many of them you simply can't convert. Anyway, you wouldn't accept to be obliged to do that just because C++ doesn't handle function calls well.
And converting abstractions to subpatches is much more limiting than that.
Using and reusing a great number of abstractions with many many levels of nesting is the only reasonable way (I can think of) of developing a large, complex, scalable, reusable "application" in PD.
well yes you are right. however, it is perfectly possible to do develop large complex scalable and resuable applications in Pd (sometimes i do this)
Of course it is! That's my whole point. It is possible and I do it too. Until the day comes that the application is just one bit too large and PD starts crashing or behaving weirdly.
On Fri, 11 Jan 2008, matteo sisti sette wrote:
You can convert just SOME of your functions to macros - I'm no C++ expert but I guess you can do that with very "small" functions. You'll do it in a few special cases to optimize very critical portions of code, you can't adopt it as a general programming practice and convert MOST of your functions to macros, and many of them you simply can't convert. Anyway, you wouldn't accept to be obliged to do that just because C++ doesn't handle function calls well.
Using macros for speed optimisations is pretty much obsolete nowadays.
The only kind of reason you'd use macros, is because C++ doesn't handle function calls well. Oh, most of the time it does; but it refuses to consider data types as being values. That's where I use macros instead. Nowadays, I even pass macros as arguments to macros.
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada
teh offtopic! it veers!
Mathieu Bouchard wrote:
The only kind of reason you'd use macros, is because C++ doesn't handle function calls well. Oh, most of the time it does; but it refuses to consider data types as being values.
and why would i want that?
That's where I use macros instead. Nowadays, I even pass macros as arguments to macros.
omg. bags not maintaining /your/ code ;-P
On Fri, 11 Jan 2008, Damian Stewart wrote:
and why would i want that?
That's where I use macros instead. Nowadays, I even pass macros as arguments to macros.
omg. bags not maintaining /your/ code ;-P
go on, flame to the wall...
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard - tél:+1.514.383.3801, Montréal QC Canada