<div dir="ltr">It works at least from R15B1<br><br>пятница, 7 февраля 2014 г., 15:25:56 UTC+4 пользователь Dmitry Kolesnikov написал:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div style="word-wrap:break-word"><div>Ah, this is R16 feature! Thanks!</div><div><br></div><div>- Dmitry</div><div><br><div><div>On 07 Feb 2014, at 13:21, Evgeny M <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="WBd0L5WvE5kJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">donped...@gmail.com</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr">Name = term() %%<a href="http://www.erlang.org/doc/man/dets.html#type-tab_name" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.erlang.org%2Fdoc%2Fman%2Fdets.html%23type-tab_name\46sa\75D\46sntz\0751\46usg\75AFQjCNFFDbC1krK_PdFxl2ZJPdiqi2k4fg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Fwww.erlang.org%2Fdoc%2Fman%2Fdets.html%23type-tab_name\46sa\75D\46sntz\0751\46usg\75AFQjCNFFDbC1krK_PdFxl2ZJPdiqi2k4fg';return true;">http://www.erlang.org/doc/<wbr>man/dets.html#type-tab_name</a> <br><br>пятница, 7 февраля 2014 г., 15:09:58 UTC+4 пользователь Dmitry Kolesnikov написал:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,
<br>
<br>I was constantly having a trouble with dets:open_file interface.
<br>
<br>open_file(Name, Args) -> {ok, Name} | {error, Reason}
<br> Name = atom()
<br>
<br>Using atom() as dets identifier is not always practical, however I see the major reasons behind it. 
<br>
<br>Recently I’ve discovered that following statements works perfectly:
<br>
<br>{ok, R1} = dets:open_file(erlang:make_<wbr>ref(), [{file, "/tmp/myfile"}, {access, read}]).
<br>This is “long seemed” solution. When I need to temporary open dets file for reading.
<br>
<br>do you have any insides? how safe is that to put into production?
<br>
<br>Best Regards, 
<br>Dmitry
<br>______________________________<wbr>_________________
<br>erlang-questions mailing list
<br><a>erlang-q...@erlang.org</a>
<br><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Ferlang.org%2Fmailman%2Flistinfo%2Ferlang-questions\46sa\75D\46sntz\0751\46usg\75AFQjCNH15VBDH9qL9o1Zx3x6ZeLmwvUvTg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Ferlang.org%2Fmailman%2Flistinfo%2Ferlang-questions\46sa\75D\46sntz\0751\46usg\75AFQjCNH15VBDH9qL9o1Zx3x6ZeLmwvUvTg';return true;">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a>
<br></blockquote></div></blockquote></div><br></div></div></blockquote></div>