in reply to Changing run mode in cgi::application

Read the answer I gave you on the cgiapp mailing list. The issue that you don't seem to be understanding is this: all runmodes are functions. There is nothing magical about them. If you want to change runmodes, you have to change which function returns back to the C::A function that calls runmodes.

Here's another way to think about it - you need to change what value is returned back to the C::A function that calls runmodes. I actually have runmodes that act as traffic cops, figuring out which function actually will generate the output, depending on various conditions. Those output functions are not "runmodes".

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

  • Comment on Re: Changing run mode in cgi::application