[erlang-questions] Construct parameter dynamically, sometimes illegal?
Caspar Florian Ebeling
florian.ebeling@REDACTED
Fri Jul 11 16:26:23 CEST 2008
I'm really a bit confused about cases when it is not possible to
pass parameters which were created dynamically. An example:
this does not work,
{ok, File} = file:open("writebench.data.erl",
[write, binary, raw, {delayed_write, math:pow(2, 12), 1000}]
but this does,
{ok, File} = file:open("writebench.data.erl",
[write, binary, raw, {delayed_write, 65536, 1000}]
Shouldn't that evaluate to exactly the same thing?
Florian
--
Florian Ebeling
florian.ebeling@REDACTED
More information about the erlang-questions
mailing list