I had thought about that. I would vote for something extensible like a dict with a required field.
## For a straight abort_page set d [dict create] dict set d error_code “abort” ## For a redirect set d [dict create] dict set d error_code “redirect” dict set d location [headers set Location] Or whatever. error_code being very Tcl’ish and the only required value. The others are dependent on the error_code value. It’s simple, and we can add other codes with other information later. D > On Dec 15, 2014, at 3:54 PM, Massimo Manghi <[email protected]> wrote: > > In fact, I was just afraid that rushing a decision would spoil a more > elegant way of encoding this (and other) conditions > > -- Massimo > > On 12/15/2014 10:51 PM, Damon Courtney wrote: >> Can’t we just call [abort_page “redirect”] from the proc instead of >> without an argument? Then at least someone can check the abort code >> in their script to see that it’s a redirect and ignore it. Seems like >> a pretty reasonable idea. :) >> >> D >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
