<?xml version="1.0"?>
<paste-with-annotations>
  <paste>
    <number>
      <integer>48341</integer>
    </number>
    <user>
      <string>|Agent</string>
    </user>
    <title>
      <string>Macro help</string>
    </title>
    <contents>
      <string>This macro can be used no problem:

define macro with-dbms
  { with-dbms(?dbms:expression) ?body:* end }
    =&gt; { dynamic-bind (*default-dbms* = ?dbms)
           ?body
         end; }
end macro with-dbms;


But this macro can't be used&#x97;the compiler reports &quot;Error: Syntax error in 'dynamic-bind' statement.  None of the main rules matched.&quot;

define macro with-dbms
  { with-dbms(?dbms:expression) ?body:* end }
    =&gt; { dynamic-bind (*default-dbms* = ?dbms)
           ?body ;
           close-dbms(*default-dbms*)
         end; }
end macro with-dbms;

</string>
    </contents>
    <universal-time>
      <integer>3399941047</integer>
    </universal-time>
    <channel>
      <string>#dylan</string>
    </channel>
    <colorization-mode>
      <string></string>
    </colorization-mode>
    <maybe-spam>
      <null/>
    </maybe-spam>
    <is-unicode>
      <null/>
    </is-unicode>
  </paste>
</paste-with-annotations>