Ticket #24 (closed defect: fixed)
varlist : correctly implemented ?
| Reported by: | victor | Owned by: | pmoura |
|---|---|---|---|
| Priority: | major | Milestone: | Logtalk distribution |
| Component: | library | Version: | 2.32.1 |
| Keywords: | Cc: |
Description
Hello,
I am wondering if varlist has not a problem for predicates defined in list and using unification :
varlist::select(A, [A, C, D], R). R = [C, D] ; A = C, R = [C, D] ; A = D, R = [D, C] ; false.
I expected this behavior :
varlist::select(A, [A, C, D], R). R = [C, D] ; false.
Maybe a solution would be to rewrite completely varlist implementing listp ...
I can do it if you think it is a good idea.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
