lua-users home
lua-l archive

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


PIL is pretty easy to read and dofile, require and module all made sense after I read about them but this was short lived.

The relentless debate on these topics has completely confused me, so much so that I avoid all of these.

This problem, sounds complex but perhaps it could be chipped apart. One simple function that would help people like me would be a sort of "copy_in()" function whereby the contents enclosed would be would be parsed as if they had been typed where the copy_in function was called from, do - end blocks around it could be used also be used to control scope.

It's my understanding that this is not how dofile works, dofile has scope side affects.

copy_in would be very simple to understand and could reduce the need for require and could reduce these discussions a bit too-Patrick