Generating an immediately instantiated prototype function

17 views
Skip to first unread message

Emiliano Heyns

unread,
Nov 16, 2014, 3:09:33 PM11/16/14
to lispy...@googlegroups.com
Is there a way to have lispyscript generate something like:

var Translator = new function() {
    this.keys = {};
    this.method = function(x) {... }
}

Santosh Rajan

unread,
Nov 17, 2014, 5:00:00 AM11/17/14
to lispy...@googlegroups.com

You can write a macro for that.
Reply all
Reply to author
Forward
0 new messages