dbg_iload:guard_test/1 patch

Luke Gorrie luke@REDACTED
Thu Apr 1 11:56:55 CEST 2004


Ahoy,

The patch below adds support for two types of guards in the
debugger's Erlang interpreter:

  Var
  not <Expr>

It just translates them into:

  Var == true
  <Expr> /= true

These seem to be new features added to Erlang but not this
interpreter.

If you use these guards in your programs and you have seen Distel
blowing up when you interpret your modules, I recommend applying this
in lib/debugger/src/ :-)

P.S., is there any technical reason not to rewrite the Erlang
interpreters in the debugger and/or shell to interpret Core Erlang
instead?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbg_iload.patch
Type: text/x-patch
Size: 734 bytes
Desc: guard_test/1 fix
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20040401/12851a43/attachment.bin>


More information about the erlang-questions mailing list