Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
On both OpenBSD amd64 and Snow Leopard I get the following.
Is this expect behavior? I would think I would get 6 returned. All tests pass when I run make test yet calling a simple function doesn't?
Yes, this is expected behavior because the scope in which the interactive interpreter runs commands changes with each line. In your example, on the second line,