Skip to content
Snippets Groups Projects
Forked from antik / gsll
Source project has a limited visibility.
  • Liam Healy's avatar
    6010bde3
    Introduce values-unless-singleton for return values in defmfun expansion · 6010bde3
    Liam Healy authored
    New function values-unless-singleton will wrap the forms in 'values if
    there are more than one, otherwise it just returns the form.  This is
    used in the return value(s) in the defmfun expansion (by way of
    body-expand) so that if the returned form returns multiple values,
    they all come back from the defmfunned function (note that (values
    (values ...)) removes only returns the first value.
    6010bde3
    History
    Introduce values-unless-singleton for return values in defmfun expansion
    Liam Healy authored
    New function values-unless-singleton will wrap the forms in 'values if
    there are more than one, otherwise it just returns the form.  This is
    used in the return value(s) in the defmfun expansion (by way of
    body-expand) so that if the returned form returns multiple values,
    they all come back from the defmfunned function (note that (values
    (values ...)) removes only returns the first value.