I’m planning to make a framework that will have a base functionality and a series of plug-ins…
Now, based on a specific list of variables… does anyone know how to have it perform functions based on that list?
ie.
fxn(“ab,cd,ef”) results in fxn_ab(); fxn_cd(); fxn_ef()
fxn(“ab,cd,ef,gh,ij”) results in fxn_ab(); fxn_cd(); fxn_ef(); fxn_gh(); fxn_ij()
fxn(“ab,ef,ij”) results in fxn_ab(); fxn_ef(); fxn_ij()
and so on…
In other words, as it goes through the list, it grabs an element of the list, appends a certain prefix, and the result is the name of the function to be called…
Has anyone had any success with doing this? Oh, and please no switch/case statements… I have no idea how many plug-ins I’ll be making so I want something that would require a single call without having to refer to a table of case statements…