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

Regexp module issue with hash-table #15

Open
alvatar opened this issue Oct 23, 2015 · 4 comments
Open

Regexp module issue with hash-table #15

alvatar opened this issue Oct 23, 2015 · 4 comments

Comments

@alvatar
Copy link
Owner

alvatar commented Oct 23, 2015

 (load (spheres/string regexp))
> (regexp-extract '(+ numeric) "192.168.0.1")


*** ERROR IN spheres/structure#hash-table#hash-table-mutable? -- (Argument 1) Instance of #<type #2 table> expected
(##direct-structure-ref '#<table #3> 1 '#<type #2 table> #f)
@ovenpasta
Copy link
Contributor

$ gsi
-- environment: debug -- preloaded libraries: (spheres/core meta) (spheres/core assert)
Gambit v4.8.0

> (load (spheres/string regexp))                
> (regexp-extract '(+ numeric) "192.168.0.1")   
("192" "168" "0" "1")
> 

@alvatar
Copy link
Owner Author

alvatar commented Oct 29, 2015

Did you fix it?

@ovenpasta
Copy link
Contributor

No it just works here. I have gambit 4.8.0 - linux amd64. Maybe issues with 4.8.1?

@alvatar
Copy link
Owner Author

alvatar commented Oct 29, 2015

Yes, it might be worth taking a look at changes in how hash-tables are defined. I knew the time would come that the hash-table hack would fail.
Anyway, as always I'm sorry I cannot dive into this at the moment. I'll be glad to review your code if you fix it!

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