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
Fix wrong use search #849
Fix wrong use search #849
Conversation
@zhaihj Can you please have a look at da917b2 ? That should fix it. |
Goodness, that's a big text size for a terminal. 4K? |
Btw, just fixed the abs problem, which mysteriously appeared today. |
@davidhesselbom Just a retina display :) (native resolution: 2880x1800). About abs: I think it might be related to the stricter checks introduced in 80e0a09 (Which, in retrospect, explains a0c178c). Imho type extensions should be able to redefine functions if they feel like it, although that might be too obscure. Hm. |
Do you want to open ruby's biggest can of worms :)? |
@vendethiel d'awwwwww good point let's not talk about open classes or monkey-patching or any of that scripting language nonsense. (But, btw, type extensions in ooc are a lie — and completely bypass the vtable.) |
Sorry, it's been a long time since I last looked at some rock, but I just think... It's a bad idea to add that :P. |
Actually it's been a very long time since I've read some parts of rock. And when I read it now, I just want to burn it all. To the ground. And rewrite it all. But who's got the time for that :( Cogneco when you're rich, hire me, I'll make ooc better I promise. |
Would you have, in retrospect, liked better to make ooc a "google" language? (as I think you got an email from google or smth) |
I did get an e-mail from Google about a job offer — but they send hundreds of those everyday, it was nothing serious / personal. And it wasn't ooc-related as far as I could tell. I've used ooc professionally at official.fm, and I've written another compiler at my current company, and I'm still today using ooc in another project, with yet another language on top — so, you know, I'm still "in the game" somewhat, just not running around, giving conferences and whatnot. |
@fasterthanlime, this is what we're using ooc for: http://techcrunch.com/2015/01/09/imint-wants-to-bring-real-time-video-stabilization-to-android/ |
Just, you know, in case you're curious. |
@davidhesselbom that looks really cool :) |
Alright - amazing. Did see that new compiler :). |
@davidhesselbom well, you know, if you've got some extra funding, I wouldn't mind spending some time doing paid work to improve ooc. I might have to look into... alternative solutions of a financial kind, for the near future. Oh well. |
@fasterthanlime How much to fix #829? ;) (actually, that one's been fixed, I just haven't had time to make a pull request yet. I haven't tried zhaihj's fix either, it might work even better than ours...) I'll see if there's some extra money lying around the office, the idea has been brought up before. |
@fasterthanlime |
Thanks for confirming @zhaihj ! |
Problem Description:
UseDef findUse() return wrong path according to the order of soures.
Assume that we have ./ooc-math.use and ./source/sdk/math.use. When searching for math.use, the following code
gives ooc-math.use instead of math.use because both of them have suffixes "math.use" but ooc-math is searched first. This will cause circle dependency problem.
How to reproduce:
Compile ooc-kean with the lastest rock.
Fix: