So, one:
*process:on( "error", function( e )*
* p( "Process Error", e )*
*end )*
the process global does not seem to be registering, I get "attempt to call
method 'on' (a nil value)"
*net.createServer()*
Is now throwing "attempt to index local 'options' (a nil value)", I assume
I am now required to pass a function.
The following (incomplete for brevity) snippet:
*function Server:listenCallback( e ) print( 'listening' )endfunction
Server:onClient( client ) p( client )endfunction Server:start() self.server
= net.createServer( utils.bind( self.onClient, self ) ) self.server:listen(
7173, utils.bind( self.listenCallback, self ) ) self.server:on("error",
function( err ) assert( err ) end )end*
The callback binding for for the "createServer" method is returning "nil"
as the client. If I do this it works fine:
*self.server = net.createServer( function( client ) *
* p( client )*
*end )*
Same happens with:
*client:on( "data", utils.bind( self.onData, self ) )*
The data is "nil" it could be possible that something in the utils.bind is
not passing the value, as I can do:
*function Server:listenCallback( e ) print( 'listening' )end*
*self.server:listen( 7173, utils.bind( self.listenCallback, self ) )*
And I will get the 'listening' message printed.
Again, all of these examples are out of context, but the codebase runs on
pre-luvi luvit. I really like what you're doing with luvi by the way.
Great idea.
Best
On Tuesday, December 2, 2014 12:57:23 PM UTC-6, Tim Caswell wrote:
>
> That is the goal, but the new luvit is not done. Tell us what's not
> working and we can prioritize those features.
>
> On Tue, Dec 2, 2014 at 12:46 PM, develephant <[email protected]
> <javascript:>> wrote:
>
>> Hi,
>>
>> I am using the new luvit with luvi build, and after moving over my code
>> from my project, I am getting some errors. It works fine with the pre-luvi
>> luvit, which is what is was developed on.
>>
>> Should pre-luvi luvit code work on the new build? Thanks in advance.
>>
>> Cheers.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "luvit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
You received this message because you are subscribed to the Google Groups
"luvit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.