[erlang-questions] R13B prefers reference() to ref()
Magnus Henoch
magnus@REDACTED
Wed Apr 22 18:57:56 CEST 2009
I found that R13B has a different opinion on the correct type name for
references than both R12B-5 and R13A: the former accepts only
'reference()', while the latter accept only 'ref()'. Is this
intentional? Is there a way to write a type specification that works in
both compilers, apart from using 'any()'?
Example - this compiles with R12B-5 but doesn't compile in R13B:
-module(foo).
-record(foo, {bar :: ref()}).
--
Magnus Henoch, magnus@REDACTED
Erlang Training and Consulting
http://www.erlang-consulting.com/
More information about the erlang-questions
mailing list