Good idea
as for 1- i'm going to go into a bit more detail:
if you *really* must, Create one list. Use it. piece of piss.
I don't understand why it is an issue? since you're going to have a New/Create and a Delete anyway. it's *2* lines of code for every type!?
If you are complaining about this, you aren't thinking about it properly.
You could go one step further, and this isn't much of an effort at all, and place the "Global list" in the Type, and then it'll become a local list containing *only* the object type you want, thus possibly massively speeding up any itteration of that list.
As for not using OOP. If someone doesn't want to use OOP that is fine, you're holding yourself back IMHO, but you don't *have* to use it. I would just get your head out of the sand, dive in and do it. You wouldn't believe what a headache I gave Evak when I first started using OOP in Max, and now I can't live without it.
I have also found alot of my "problems" with max can be sorted by changing your coding technique- and I have found the changes to actually be a personal improvement.
as for 1- i'm going to go into a bit more detail:
if you *really* must, Create one list. Use it. piece of piss.
Global ObjectList:Tlist=new Tlist. Type OneOfYourTypes Function Create:OneOfyourTypes() local obj:OneOfYourTypes=new OneOfYourTypes Objectlist.Addlast(Obj) Return Obj End Function Method Delete() objectlist.remove(Obj) End Method End type
I don't understand why it is an issue? since you're going to have a New/Create and a Delete anyway. it's *2* lines of code for every type!?
If you are complaining about this, you aren't thinking about it properly.
You could go one step further, and this isn't much of an effort at all, and place the "Global list" in the Type, and then it'll become a local list containing *only* the object type you want, thus possibly massively speeding up any itteration of that list.
As for not using OOP. If someone doesn't want to use OOP that is fine, you're holding yourself back IMHO, but you don't *have* to use it. I would just get your head out of the sand, dive in and do it. You wouldn't believe what a headache I gave Evak when I first started using OOP in Max, and now I can't live without it.
I have also found alot of my "problems" with max can be sorted by changing your coding technique- and I have found the changes to actually be a personal improvement.