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

Blank user function causes following functions not to appear #46

Open
Drachenkaetzchen opened this issue Jun 15, 2015 · 2 comments
Open

Comments

@Drachenkaetzchen
Copy link
Contributor

When one accidentally declares an empty function, additional functions don't show up in the list.

> function foo {}
saved
> function bar { print "foo"; }
saved
> ls
function foo {};
function  print "foo";  {};
@billroy
Copy link
Owner

billroy commented Jun 16, 2015

Hi, Timo:

Thanks for your note. You’ve found a good little bug here. I’m not clear whether it’s a bug in cmd_ls() or whether the function definition is broken, but something is definitely wrong. Unfortulately, I’m away from my workbench this week so I can’t debug it first-hand. Can you please send the results of a “peep” at the eeprom after you create that situation?

-br

On Jun 15, 2015, at 1:04 PM, Timo A. Hummel notifications@github.com wrote:

When one accidentally declares an empty function, additional functions don't show up in the list.

function foo {}
saved
function bar { print "foo"; }
saved
ls
function foo {};
function print "foo"; {};

Reply to this email directly or view it on GitHub #46.

@Drachenkaetzchen
Copy link
Contributor Author

Here's the dump:

E000:  .... ....  .... ....  .... ....  .... ....  .... ....  ..fo o$$b  ar$  prin  t "f oo";
E040:   $.. ....  .... ....  .... ....  .... ....  .... ....  .... ....  .... ....  .... ....

It doesn't seem to be the cmd_ls() function, because I'm not able to call the function "bar" in that example:

> function foo {}
saved
> function bar { print "foo"; }
saved
> bar()

-----^
unexpected number
> ls
function foo {};
function  print "foo";  {};
> rm foo
> ls
function bar { print "foo"; };
> bar
foo

As soon as I remove the empty function foo, the call to bar works again.

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

2 participants