use record in bit syntax

Stephen Han kruegger@REDACTED
Fri Oct 1 00:04:16 CEST 2004


Why can't I use record in the bit syntax?

ex)

-record( date, { month, day } ).

test() ->
    A = #date{month = 1, day = 20 },
    << A#date.month/8, A#date.day/8 >>.

This will give me the error during the compilation.

regards,



More information about the erlang-questions mailing list