That seems wrong.

If the user supplies a default argument that is not an instance of the
collection's element-type then an exception should be thrown.


On Tue, Feb 11, 2014 at 3:20 PM, Dustin Voss <notifications@github.com>wrote:

> In sources/dylan/multidimensional-array.dylan:
>
> > @@ -44,14 +67,13 @@ define macro limited-array-minus-
> constructor-definer
> >
> >           define inline sealed method element
> >               (array :: "<simple-" ## ?name ## "-array>", index :: <integer>,
> > -              #key default = unsupplied()) => (object :: "<" ## ?name ## ">")
> > +              #key default = unsupplied()) => (object)
>
> Because this method can return something other than the collection's
> element-type, if the user supplies a default argument. See pull request
> #615 <https://github.com/dylan-lang/opendylan/pull/615> .
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dylan-lang/opendylan/pull/622/files#r9611585>
> .[image: Web Bug from
> https://github.com/notifications/beacon/851040__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNzYxODAxMiwiZGF0YSI6eyJpZCI6MjIzNDQ2OTh9fQ==--4f6fa715f655916ba88c8d5e8ec3ec6a7886bf6d.gif]
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
>