We're in the process of removing integers-as-sequences since they're  
useless and they end up causing lots of bugs.  However, some code in  
the compiler uses arrays and integers interchangeably, and it's not  
straightforward for me to remove as it would be for Slava (who wrote  
this code).  I think it's finally pretty high on his todo list though.

You can see that integers are still sequences by using the 'see' word  
or this:

( scratchpad - auto ) immutable-sequence members .
{
     POSTPONE: f
     integer
     iota
     repetition
     quotation
     curry
     bits
     range
}

Doug


On Oct 7, 2009, at 7:47 PM, Chris Double wrote:

> On Thu, Oct 8, 2009 at 1:42 PM, Nicholas Spies <[email protected]>  
> wrote:
>>
>> All this is well and good, but since this use of 5 instead of a  
>> sequence
>> doesn't seem to be documented, should this use be avoided, or  
>> celebrated
>> as an undocumented feature :-)  ?
>
> Numbers implement the sequence protocol. This is why it works. I'm not
> sure where this is documented.
>
> Chris.
> -- 
> http://www.bluishcoder.co.nz
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart  
> your
> developing skills, take BlackBerry mobile applications to market and  
> stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to