lua-users home
lua-l archive

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


On Thu, Nov 27, 2008 at 11:18 AM, RJP Computing <rjpcomputing@gmail.com> wrote:
> Yes and that is what I am doing right now, but I am trying to make this a
> generic app that has a limited list of dependencies. This way not everybody
> will have to have the module to use this application. It is distributed with
> an application at work. It is a good function though so I like the name and
> it will fix perfectly into the way the application is written.
>
> Other thoughts?
>
> Can I force the overwrite to happen after 'loadfile()' is called?

I didn't understand the original question, maybe you can clarify what
it is you are trying to do?

You are requiring something, and then want to replace one of the
functions in that module?

Just calling loadfile() alone doesn't actually run any lua code, it
just compiles a chunk, and returns an anonymous function, so there
isn't anything to override....

What are you trying to do?

Sam