On Wednesday 26 February 2003 4:19 pm, Andre Poenitz wrote: > What about a function > > string getNameOfTheBeast(whatever) > { > if (whatever == LFUN_INDEX_APPLY) > return "index"; > if (whatever == LFUN_REF_APPLY) > return "ref"; > } > > ?
Good idea actually. > > switch (ev.action) { > > case LFUN_INDEX_APPLY: > > inset = new InsetIndex(params); > > break; > > case LFUN_REF_APPLY: > > inset = new InsetRef(params, *buffer_); > > break; > > default: > > break; > > } > > This can't go to the factory? This is it's purpose after all... Probably. Angus