[erlang-questions] Type and Opaque - Defining size for a type

Anthony Ramine nox@REDACTED
Tue Apr 12 12:16:00 CEST 2011


-opaque u16int() :: 1..(1 bsl 16 - 1).

Le 12 avr. 2011 à 06:24, Ken Robinson a écrit :

> Hi All,
> I was wondering if one can define a type to be a certain size, say an
> integer() to be an unsigned byte (16 bits).
> 
> This is all I have
> -opaque u16int():: bitstring()
> -export_type([u16int/0]).
> 
> Any help would be greatly appreciated.
> 
> -- 
> regards,
> Ken Robinson
> Mob +61438681120
> Home +61738523767
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

--
Anthony Ramine
Dev:Extend
http://dev-extend.eu







More information about the erlang-questions mailing list