comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: More LIST weirdness?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: More LIST weirdness? [message #73977 is a reply to message #73976] Tue, 14 December 2010 12:09 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Dec 14, 6:06 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> So to me there seems to be a bug in hash::remove() and in
> list::_overloadbracketsrightside(), as both should be throwing errors
> instead of silently returning !null. The reason is, as I wrote in the
> other thread, that a list/hash having !null elements is not the same
> as one having no elements (or just not having the element specified by
> the index/key) .That is the whole reason for the length argument in
> list::init(), and hash::init() assigning !null to elements when only
> keys are passed.

In fact, when IDL 8 was still in the Tech Previews, I suggested having
hash return !null for non-existing keys, but others convinced me of
these reasons why it should throw an error.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: More LIST weirdness?
Next Topic: Re: Widget not rendering properly

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:47:51 PDT 2025

Total time taken to generate the page: 0.40052 seconds