I'm trying to use a foreign library, and not having much luck. Given the 
foreign-lib below, how would I access base.mod.points.one using clojurescript 
semantics so that I can print it to the browser console?

```clojurescript (not really)
(println "point one:" base.mod.points.one)
```

The foreign-lib looks something like the following. I've reduced/simplified the 
library for the purpose of this post.

```javascript
var base = {
  other: {},
  stuff: {}
};

if(typeof module !== 'undefined' && module.exports){
  module.exports = base;
}

base.mod = {};

base.mod.point = function(x, y) {
  this.x = x;
  this.y = y;
};

base.mod.points = {
  one: new base.mod.point(1, 1),
  two: new base.mod.point(2, 2)
};
```

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to