[erlang-questions] [ANN] Elixir v0.5.0 released

José Valim jose.valim@REDACTED
Fri May 25 18:19:55 CEST 2012


>
> Is it possible to use elixir to emulate objects on top of gen_server
> with their "instance variables" which are just fields of record?
>

Elixir does not have the concept of objects. So you have to do the same as
Erlang. You need to create a record and access/manipulate the records
fields. There is a difference that Elixir records are not a preprocessor
feature, so access/manipulation is less verbose.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120525/2f965d11/attachment.htm>


More information about the erlang-questions mailing list