[erlang-questions] How erlang handle complicated data structure like C?

Jovi Zhang <>
Sun Sep 18 09:10:43 CEST 2011


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



More information about the erlang-questions mailing list