diogoalexandrefranco / cl-strings

A portable, dependency-free set of utilities to manipulate strings in Common Lisp
MIT License
46 stars 7 forks source link

for-as clauses interleaved with conditional clauses in loop - not portable #3

Closed diogoalexandrefranco closed 8 years ago

diogoalexandrefranco commented 8 years ago

make-template-parser uses for-as clauses interleaved with conditional clauses in the loop macro, as in:

for i = (search start-delimiter string)
                      then (search start-delimiter string :start2 j)
while i
for j = (search end-delimiter string :start2 i)

While this works in most implementations, it seems to not work on clisp and is not portable by the loop definition.

diogoalexandrefranco commented 8 years ago

This was fixed with commit 516ead136d0eca4f60c44e2a8686465633157fd2