<div dir="ltr">Hi Mattias,<div><br></div><div>This isn't a bug. The expression #rec{a=2}#rec{b=3} is legal, and is the same thing as (#rec{a=2})#rec{b=3} or #rec{a=2,b=3}. If the keys overlap, then the last one "wins".</div><div><br></div><div>best regards,<br></div><div>Vlad</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 6, 2014 at 9:21 AM, Mattias Waldau <span dir="ltr"><<a href="mailto:mattias.waldau@outlook.com" target="_blank">mattias.waldau@outlook.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
This is the program<br>
<br>
-module('missing-comma-not-detected').<br>
<br>
-export([data/1]).<br>
<br>
-compile(export_all).<br>
<br>
-record(shcnode, {<br>
nodename :: any(),<br>
y_axis :: number(),<br>
children :: [any()],<br>
article_number :: number(),<br>
attribute_condition :: string()}).<br>
<br>
<br>
data(1) -><br>
[<br>
#shcnode{nodename = start, y_axis = 0, children = [d1285]},<br>
#shcnode{nodename = d1285, y_axis = 295, children = [1939,
1940]}<br>
#shcnode{nodename = 1940, y_axis = 525, children = [bm3203],
article_number = 14432861},<br>
#shcnode{nodename = 1939, y_axis = 530, children = [bm3203],
article_number = 14432860},<br>
#shcnode{nodename = bm3203, y_axis = 915, children = []}<br>
].<br>
<br>
<br>
Note the missing "," after [1939, 1940]}<br>
<br>
Only 4 rows are detected<br>
<br>
length('missing-comma-not-detected':data(1)).<br>
4<br>
<br>
---<br>
<br>
If I add the comma, I get<br>
<br>
length('missing-comma-not-detected':data(1)).<br>
5<br>
<br>
----<br>
<br>
I am using Erlang 17.3 on ubuntu.<br>
<br>
erlang:system_info(otp_release).<br>
"17"<br>
<br>
36> <code>erl -V<br>
Eshell V6.2 (abort with ^G)<br>
1> </code><br>
<br>
---<br>
<br>
Thanks,<br>
<br>
Mattias<br>
<br>
<br>
<br>
</div>
<br>_______________________________________________<br>
erlang-bugs mailing list<br>
<a href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-bugs" target="_blank">http://erlang.org/mailman/listinfo/erlang-bugs</a><br>
<br></blockquote></div><br></div>