Skip to content

added luajit support - #40

Open
dodo wants to merge 2 commits into
hoelzro:masterfrom
dodo:master
Open

dodo wants to merge 2 commits into
hoelzro:masterfrom
dodo:master

Conversation

@dodo

@dodo dodo commented Feb 24, 2015

Copy link
Copy Markdown

the pretty_print plugins was constantly failing for me when trying to print _G in luajit.

I know the bugfix is not pretty, but works for everything.

What do you think?

@hoelzro

hoelzro commented Feb 24, 2015

Copy link
Copy Markdown
Owner

@dodo Thanks for the submission; I think I'd better think of a more general way of solving this.

@hoelzro

hoelzro commented Feb 25, 2015

Copy link
Copy Markdown
Owner

@dodo I've added support in the master branch; please test with that change and let me know if it works!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't working in luajit for me.

$ luajit
> r = require'repl.console'
> r:loadplugin'pretty_print'
> r:run()
> f = {}
> f[pairs] = 23
> f[ipairs] = 42
> return f
/usr/local/share/lua/5.1/repl/plugins/pretty_print.lua:114: attempt to compare two function values

@hoelzro

hoelzro commented Mar 3, 2015

Copy link
Copy Markdown
Owner

See #41

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

Successfully merging this pull request may close these issues.

2 participants