[erlang-questions] How erlang handle complicated data structure like C?
George Catalin Serbanut
cgsmcmlxxv@REDACTED
Sun Sep 18 09:17:07 CEST 2011
Hi Jovi
Nested records (http://www.erlang.org/doc/reference_manual/records.html).
CGS
On Sun, Sep 18, 2011 at 9:10 AM, Jovi Zhang <bookjovi@REDACTED> wrote:
> Hi,
> Is there any good way to handle complicated data structure like C in
> Erlang?
>
> struct packet_t {
> int a,
> double b,
> struct xx_t,
> union c {int d, char e},
> char f:1,
> char g:3,
> char h:5
> }
>
> Some protocol have complicated data structure like above, how to
> represent those structure in Erlang? and operate on each field freely
> like C?
>
> .jovi
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110918/ba8fedc3/attachment.htm>
More information about the erlang-questions
mailing list