[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Q on functions as first class values
- From: "Michael Newberry" <mnewberry@...>
- Date: Wed, 2 Feb 2005 13:04:39 -0700
Diego,
I agree totally that this should not be the case, because I certainly would
have run across it long before now! But there it is. My suggested
explanation was just me trying to rationalize what is happening. Weird.
Here is the other C function called. The object CLuaScript object persists
for the lfe of the script. The variable m_sTitle is a CString member of the
CLuaScript class.
///////////////////////////////////////////////////////////////////////////////////////////////////////
LPCTSTR CLuaScript::SetTitle( LPCTSTR sTitle )
{
CString s = m_sTitle; // current title
m_sTitle = sTitle; // new title
return s; // return the previous title
}
----- Original Message -----
From: "Diego Nehab" <diego@tecgraf.puc-rio.br>
To: "Lua list" <lua@bazar2.conectiva.com.br>
Sent: Wednesday, February 02, 2005 12:45 PM
Subject: [Norton AntiSpam] Re: Q on functions as first class values
Hi,
Can we get the source-code for this?
g_LuaScript.SetTitle( )
[]s,
Diego.