Re: [Scheme-reports] 'else' auxiliary syntax Per Bothner (17 Oct 2014 17:07 UTC)
Re: [Scheme-reports] 'else' auxiliary syntax John Cowan (17 Oct 2014 17:33 UTC)
Re: [Scheme-reports] 'else' auxiliary syntax Peter Bex (17 Oct 2014 19:26 UTC)
Re: [Scheme-reports] 'else' auxiliary syntax John Cowan (18 Oct 2014 00:57 UTC)
Re: [Scheme-reports] 'else' auxiliary syntax Per Bothner (18 Oct 2014 07:03 UTC)
Re: [Scheme-reports] 'else' auxiliary syntax John Cowan (19 Oct 2014 01:42 UTC)
Re: [Scheme-reports] 'else' auxiliary syntax Alex Shinn (20 Oct 2014 04:06 UTC)
Re: [Scheme-reports] 'else' auxiliary syntax Alex Shinn (05 Nov 2014 13:50 UTC)
Re: [Scheme-reports] 'else' auxiliary syntax John Cowan (06 Nov 2014 02:29 UTC)

Re: [Scheme-reports] 'else' auxiliary syntax John Cowan 18 Oct 2014 00:53 UTC

Peter Bex scripsit:

> If I understand correctly, that means that this program should
> not fail, but simply print "1":
>
> (define (else) 1)
> (display (else))
> (newline)

That's true of all the 44 Schemes in my test suite, except a few that
don't allow you to redefine names imported from a module even at the REPL.

But there really shouldn't be any difference between defining an
undefined identifier as a variable and redefining an existing ordinary
(non-auxiliary) syntax keyword as a variable, either.  Unfortunately,
this is only true of some Schemes.  In particular, redefining a regular
(non-auxiliary) syntax keyword as a procedure doesn't work in Chicken,
Bigloo, STklos, Shoe, TinyScheme, Scheme 9, S7, XLisp, Rep, Picrin,
and signals a define-time error in Gambit, SXM, Scheme48, Ypsilon, KSi.
In my other Schemes, it succeeds, possibly with a warning.

--
John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
The Imperials are decadent, 300 pound free-range chickens (except they have
teeth, arms instead of wings, and dinosaurlike tails).  --Elyse Grasso

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports