Hello,
I'm trying to structure my custom module. Basically,
I have C++ classes Tiger, Dog, Cat, ... that inherit from Animal. What
would be the most efficiant way to wrap them to provide a custom module?
As far as I can see it:
* Wrapper class inheritance is not feasable, because static members
Encapsulated bindings.
Make all bindings available w/ some naming convention for the namespaces.
Have a constructor function per type
* Have Animal.prototype be the members of Animal::
* Have Dog.prototype be the members of Dog::
Attach the static functions to constructor functions
Add sugar if
Do you need to compile the source code yourself, or could you simply use
the binaries at http://nodejs.org/download/ ?
On Monday, December 10, 2012 2:49:49 AM UTC-5, Ben Noordhuis wrote:
On Mon, Dec 10, 2012 at 2:42 AM, Eenvincible
elish...@gmail.comjavascript:
wrote:
Hi everyone,
I wrote short article about Functional Mixins with simple example, maybe it
will be useful http://petrush.in/blog/2012/functional-mixins
On Wednesday, November 7, 2012 6:32:04 AM UTC+4, José F. Romaniello wrote:
I really like this functional mixins thing, another good read is this one
Node is JavaScript (Linux or Windows doesn't matter unless you are doing
something platform specific), happy learning!!!
On Sunday, December 9, 2012 9:30:46 AM UTC-6, Ket wrote:
Thank you Juan for your help.
Your suggestion is very helpful. Mostly, I did node on the Windows
environment.
Hi Alan,
thanks for your time.
Let me tell bit more about the use-case. I want to run the nodeJs program
inside OSGi (equinox). For that matter I would need a plugin bundle of
NodeJs library to be loaded inside OSGi. Is there a way to that?
Thanks,
Prashant
On Sunday, December 9, 2012
Lua is the king of embedded languages. Give it a try.
On Mon, Dec 10, 2012 at 10:36 AM, prashant pandey
prashant.pra...@gmail.com wrote:
Hi Alan,
thanks for your time.
Let me tell bit more about the use-case. I want to run the nodeJs program
inside OSGi (equinox). For that matter I would
A programming language similar to JS. Google it. Home page is here:
http://www.lua.org/ List of tutorials is here:
http://lua-users.org/wiki/TutorialDirectory A framework that
duplicates node in lua is here: https://github.com/ignacio/luanode
It was designed for embedding. The interpreter is
IMHO, your architectural design should be revisited. the short answer is
that Yes you can do it and I'll explain how. The long answer is that OSGi
is a system that treats its parts as a module and communicate with them
through native busses, so it may wrap them and handle any state of their
I re-wrote your example using a new library that I'm working on;
https://gist.github.com/4254699
Here is another example: https://gist.github.com/4136102
And this is the library: http://github.com/azer/ak47
On Mon, Dec 10, 2012 at 8:05 AM, Alexey Petrushin
alexey.petrus...@gmail.com wrote:
Why is this so hard?
Why do we need unnecessary OOP abstractions.
Use functions, it's really really simple. https://gist.github.com/4255961
```js
function Base(text) {
return function () {
return text
}
}
function Derived(source, prefix) {
var text = Base(source)
11 matches
Mail list logo