Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

27 - allow empty stacks #27

Open
joshsh opened this issue Apr 8, 2011 · 0 comments
Open

27 - allow empty stacks #27

joshsh opened this issue Apr 8, 2011 · 0 comments

Comments

@joshsh
Copy link
Owner

joshsh commented Apr 8, 2011

When applied to a nil stack, current Ripple evaluators simply terminate
without passing data.  While passing a nil stack seems pointless in most
cases, there are in fact times when it is useful, and when the passing of
the nil stack is the most correct and intuitive behavior.  For instance,
this program:

@define s classLabel:
    s rdf:type >>
        (owl:Class equal >>) pop scrap ifte >>  
    s rdfs:label >> .

The expected behavior is that the type resource is popped off of the stack
(at which point the stack is nil), after which s is pushed back onto the
stack.  As it is, the program terminates without yielding a result.

Original link: http://code.google.com/p/ripple/issues/detail?id=27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant