← Back to team overview

mudlet-makers team mailing list archive

Re: [Bug 1261536] Re: getExitStubs() returns the room ID instead of nil when there are no stubs

 

Actually, as a fix for the [0] issue, why not provide, e.g. a
getExitStubs1() - note the '1' suffix - for those few messed up cases
and correct the index issue in them.  Going forward we can document
these case and direct new users to them, pointing out way we haven't
changed the originals to preserve functionality.

Anyone else remember the BASIC command "OPTION BASE" that some dialects
had to switch between arrays in that language starting from 0 or 1? 8-)

On 17/12/13 01:36, Chris wrote:
> Sorry, c++ habits.
> 
> sent from my phone
> On Dec 16, 2013 6:36 PM, "Vadim Peretokin" <vperetokin@xxxxxxxxx> wrote:
> 
>> @0 index: yeah, it is. Unfortunately we'll break existing code that had to
>> have hacked around this issue if we fix it to use 1 index.
>>
>> We should not let any other functions slip in that do this.
>>
>> --
>> You received this bug notification because you are subscribed to Mudlet.
>> https://bugs.launchpad.net/bugs/1261536
>>
>> Title:
>>   getExitStubs() returns the room ID instead of nil when there are no
>>   stubs
>>
>> Status in Mudlet the MUD client:
>>   Confirmed
>>
>> Bug description:
>>   getExitStubs() returns the room ID instead of nil when there are no
>>   stubs . See
>>   http://forums.mudlet.org/viewtopic.php?f=7&t=4272&p=19841#p19840. This
>>   is just non-sensical and makes it difficult to work with as the code
>>   that this design forces isn't obvious (why would someone be checking
>>   for a number and not just nil for the lack of stubs?)
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/mudlet/+bug/1261536/+subscriptions
>>
>

-- 
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1261536

Title:
  getExitStubs() returns the room ID instead of nil when there are no
  stubs

Status in Mudlet the MUD client:
  Confirmed

Bug description:
  getExitStubs() returns the room ID instead of nil when there are no
  stubs . See
  http://forums.mudlet.org/viewtopic.php?f=7&t=4272&p=19841#p19840. This
  is just non-sensical and makes it difficult to work with as the code
  that this design forces isn't obvious (why would someone be checking
  for a number and not just nil for the lack of stubs?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1261536/+subscriptions


Follow ups

References