{ok, File} = file:open("writebench.data.erl",<br>                   [write, binary, raw, {delayed_write, 1 bsl 12, 1000}]<br><br>will work :)<br>
<br><br><div class="gmail_quote">On Fri, Jul 11, 2008 at 4:26 PM, Caspar Florian Ebeling <<a href="mailto:florian.ebeling@gmail.com">florian.ebeling@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm really a bit confused about cases when it is not possible to<br>
pass parameters which were created dynamically. An example:<br>
this does not work,<br>
<br>
    {ok, File} = file:open("writebench.data.erl",<br>
                           [write, binary, raw, {delayed_write, math:pow(2, 12), 1000}]<br>
<br>
but this does,<br>
<br>
    {ok, File} = file:open("writebench.data.erl",<br>
                           [write, binary, raw, {delayed_write, 65536, 1000}]<br>
<br>
Shouldn't that evaluate to exactly the same thing?<br>
<br>
Florian<br>
<font color="#888888"><br>
--<br>
Florian Ebeling<br>
<a href="mailto:florian.ebeling@gmail.com">florian.ebeling@gmail.com</a><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>--Hynek (Pichi) Vychodil