On Tue, Apr 24, 2012 at 02:54, Ryan Cole <[email protected]> wrote:
> I'm wrapping a C++ object and then appending some properties. I'm calling
> Wrap(), and then Set()'ing the properties directly onto args.This(). This
> does not look or feel right to me, so I'm inclined to think I'm doing it
> wrong. I'm so new to this that none of the examples are standing out to me
> as the proper way of doing this.
>
> Can someone please take a peek at the highlighted lines of my code and give
> me a few pointers? Namely, am I doing this incorrectly?
>
> https://github.com/ryancole/node-hdf5/blob/master/src/node_h5file.cc#L67-74

There's nothing really wrong with that approach. If the properties are
subject to change, you could use ObjectTemplate::SetAccessor()
instead.

-- 
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