Reflection in Erlang.

Richard Carlsson richardc@REDACTED
Thu Jan 27 15:04:04 CET 2005


Héctor Rivas Gándara wrote:
> I wan't to wrap  objects from other language, so the problem is how to 
> dinamicly impersonate an object with an arbitrary interface in Erlang.  I  
> can solve this using the simple call:
> 
> adaptor:callMethod(Obj, "method1", Args).
> 
> but I was looking for some "Sugar Syntax". The ideal was something like:
> 
> Obj:method1(arg1, arg2).
> 
> But I known, Erlang is not an OO language :)

You might want to play around with abstract modules (an
experimental feature, available in R10).

http://www.erlang.org/ml-archive/erlang-questions/200411/msg00048.html

	/Richard



More information about the erlang-questions mailing list