a bug in current_functor
Carlo Capelli <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CABty9wwfyyx=LNSuRbcr_EeTL3-80rCcCBJ8V0O95_rpzw1SMw@mail.gmail.com> |
Hi Jan There could be a bug at line 391 of pl-funct.c. That line read if ( fd && fd->arity > 0 && (!nm || nm == fd->name) ) but I think should be if ( fd && fd->arity >= 0 && (!nm || nm == fd->name) ) This arises from this question <http://stackoverflow.com/q/19642818/874024>. bye Carlo ** -------------- next part -------------- HTML attachment scrubbed and removed