Is there a command, say "foo" that I can type at the command prompt,
so it'll tell me what *.scm file (and line number) said function/macro
comes from?
Ideally something like:
,foo load
or
(foo 'load)
and I get: lib/_eval.scm 3961
Thanks!
foo.scm:
(namespace ("foo#"))
(##define define 2)
[some code]
(my-define ...)
define
----
Is there something I can replace [some code] with, so that:
1) I'm still in namespace foo#
2) foo#my-define = ""#define
3) define still has value 2 on the last line
[I'm doing some weird tricks where define does type checking on its
args at run time.]
Thanks!
Hey guys,
If anyone here is doing 3d stuff with Gambit, you might find my OBJ
model loader useful. It'll load vertices, normals, and indices for
models from the Wavefront .OBJ format. I'll implement UV coordinates
soon. I wrote a blog post about using it and posted the code (it's
also in the gambit iphone github project and I'll be improving it
there):
http://jlongster.com/blog/2009/08/3/iphone-physics-and-models/
I also studied Gambit's serialization mechanisms using
object->u8vector for compressing models and speeding up loading times.
It turned out great! You can find examples in my post.
Hope someone finds it useful. Thanks -
James