lua-users home
lua-l archive

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


If the script is going to use these variables by name, then you may as well just
set them as globals.

so your script file may look something like this:

-- script --
createWindow(width, height)
-- /script --

and you want "width" and "height" to be available. So just set them as globals,
and run the script. Or am I missing something in what you want to do?

----- Original Message -----
From: Antero Vipunen <antero@ngs.ru>
Date: Wednesday, August 13, 2003 3:37 am
Subject: Re: Manipulating locals

> Hello benjamin,
> 
> Tuesday, August 12, 2003, 12:52:23 AM, you wrote:
> 
> bsh> What do you mean, exactly? Are you trying to manipulate a lua 
> function's local
> bsh> variables from a C function the lua function calls? Or are you trying 
> to make a
> bsh> C function that has local lua variables?
> 
> I need to add some local vars before luascript execution...
> 
> 
> -- 
> Best regards,
> Antero Vipunen
> 
> 
>