Re: [nodejs] How to properly pass Local as function param?

Sun, 11 Nov 2012 19:16:23 -0800

Ok awesome, thanks for the reads. Also, just to deliberately ask, what 
about in async function calls? I'm assuming I'd not use Local<Object>? For 
example, if I were using the baton pattern, would my baton struct use a 
Local<Object>? I've seen examples for callback functions that use 
Persistent<Function>, so that makes me think I'd use Persistent<Object> to 
cross those function calls?

Thanks,
Ryan

On Sunday, November 11, 2012 8:53:20 PM UTC-6, Ben Noordhuis wrote:
>
> On Mon, Nov 12, 2012 at 2:35 AM, Roger WANG 
> <[email protected]<javascript:>> 
> wrote: 
> > Ryan Cole <[email protected] <javascript:>> writes: 
> > 
> >> Ya immediate function call. My bad for not mentioning that. Ok, I had 
> it 
> >> passing as a Local, but I didn't know if that was bad or not. 
> >> 
> >> I have to admit, the docs for v8, node and libuv are all difficult to 
> merge 
> >> into one as a beginner. I'm honestly just brute forcing my knowledge of 
> >> these libraries as much as I can. I make attempts to scan each set of 
> docs 
> >> for information as to how to do things, and when I cant find it there I 
> go 
> >> to github looking for examples using code search, and if that fails I 
> go to 
> >> google. When those all fail I generally go to IRC or here. It's a slow 
> >> painful progression but it's basically the only way I know how to, at 
> the 
> >> moment. 
> > 
> > Regarding V8 beginners, there is some examples in 
> > v8/test/cctest/test-api.cc which could be helpful to learn how to do 
> > various things. 
>
> For libuv there is [1].  People mention that reading the tests[2] 
> helps to create a mental picture of how everything ties together. 
>
> [1] http://nikhilm.github.com/uvbook/ 
> [2] https://github.com/joyent/libuv/tree/master/test 
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to