Andre Poenitz <[EMAIL PROTECTED]> writes:

| > 
| > You mean so that we can have a centralized testing at the top of the
| > function?
| > 
| > dispatch(..)
| >   string string_arg
| >   char char_arg;
| >  ......
| >   if (lyxaction.func(LFUN_BUFFER_NEW).arg1 == type_info<string>)
| >         string_arg = stream_cast<string, string>funcslot[1]
| >   .....
| > 
| > unless you have a better idea I think we should check at each case.
| 
| We could use strings (and only strings) as arguments of Dispatch or in
| the slots, can't we?

Sure, but some of the LFUNS will require other types, so the string
must then be convertable to int (or any other type)

        Lgb

Reply via email to