lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> loadfile & load do the same check with mode. Unfortunately, in 2
> different functions : checkright in lbaselib.c and checkmode in
> lauxlib.c.
> 
> I try with 2 different ways (see attached patches) to refactor the
> code which handles the parameter mode.

It would be more helpful a short description than a complete
implementation.  But the second way seems interesting.

-- Roberto