String.back

20 views
Skip to first unread message

Relez

unread,
Mar 14, 2012, 7:16:29 PM3/14/12
to FalconPL
Another strange thing...

str = "abcdef"
> str.back(1, true, true)
> str
str = "abcdef"
> str.back(1, false , true)
> str

output:

102
abcde
102
abcdef

I know that only if the second parameter is true we can get the
numeric value... why i got the second "102"? and i don't understand
why
str.back(1, true, true)
removes the first char (it's ok) while
str.back(1, false, true)
doesn't remove it (if the doc is right removing the first char is
managed by the 3rd parameter...)

MIURA Masahiro

unread,
Mar 14, 2012, 10:04:00 PM3/14/12
to falc...@googlegroups.com
>>> str = "abcdef"
: "abcdef"
>>> str.back(1, true, false)
: "f"
>>> str
: "abcde"

Looks like the 2nd and the 3rd parameters are swapped.  Glitch in the doc?

Giancarlo Niccolai

unread,
Mar 15, 2012, 7:59:15 AM3/15/12
to falc...@googlegroups.com

Uhm, very probably.

I need a volunteer to regenerate the docs with a few fixes.

Gian.


Steven Oliver

unread,
Mar 15, 2012, 11:15:41 AM3/15/12
to falc...@googlegroups.com
Sounds like something I can do. PM me with the details.

Steven N. Oliver 
Reply all
Reply to author
Forward
0 new messages