|
|
| Author |
Message |
|
| jakob at skipper.dk |
Posted: Mon Nov 28, 2005 9:26 am |
|
|
|
Guest
|
% This code fails in Erlang R10B8 when debugger is running.
%
% Do the following:
% * Compile this module
% * Run "debugger_fun:test()", output is [yes,no,no,no]
% * Start the debugger "debugger:start" and interpret this module; no breakpoints etc. necessary
% * Run "debugger_fun:test()" again, output is now [no,no,no,no]
-module(debugger_fun).
-export([test/0]).
n(N) ->
|
|
|
| Back to top |
|
| gunilla at erix.ericsson. |
Posted: Thu Dec 01, 2005 2:38 pm |
|
|
|
Guest
|
Thanks, the bug is now fixed. The new version of Debugger will be part
of R10B-9, probably to be released in December.
/ Gunilla
Jakob Skipper wrote:
> % This code fails in Erlang R10B8 when debugger is running.
> %
> % Do the following:
> % * Compile this module
> % * Run "debugger_fun:test()", output is [yes,no,no,no]
> % * Start the debugger "debugger:start" and interpret this module; no
> breakpoints etc. necessary
> % * Run "debugger_fun:test()" again, output is now [no,no,no,no]
>
> -module(debugger_fun).
> -export([test/0]).
>
>
> n(N) ->
> lists:map(
> fun(X) when N==X ->
> yes;
> (_) ->
> no
> end,
> [1,2,3,4]
> ).
>
> test() ->
> n(1).
>
>
> If you replace the "when" clause in the fun with a case expression then
> it works fine.
>
> --
> Jakob Skipper
> Skipper ApS
> jakob_at_skipper.dk
> +45 5192 4447
Post generated using Mail2Forum (http://m2f.sourceforge.net) |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|