[alexandria-devel] starts-with-subseq buggy

Nikodemus Siivola nikodemus at random-state.net
Sat Jun 2 15:38:22 UTC 2012


Note to self:

[18:17]  <yates> pjb: yes, i did read that
[18:17]  <adeht> alexandria:starts-with-subseq is terribly buggy :(
[18:19]  * KognizantKog (~user at 72.168.55.98) has joined #lisp
[18:20]  <yates> pjb: have you read
http://www.lispworks.com/documentation/HyperSpec/Body/26_glo_s.htm#satisfy_the_test
[18:20]  <yates> ?
[18:21]  <yates> do you disagree with the definition?
[18:23]  * teggi (~teggi at 113.172.40.96) has joined #lisp
[18:24]  <fe[nl]ix> adeht: how so ?
[18:25]  <adeht> fe[nl]ix, for example you'd expect
(starts-with-subseq "foo" "oop" :start1 1) to return true... but (i)
it passes args to mismatch in the reverse order so start1 becomes
start2 and (ii) it compares the result of mismatch to the whole
prefix's length, so returns false

Cheers,

 -- Nikodemus




More information about the alexandria-devel mailing list