cJASS box comes up first
I still think it shows what it compiles to if theres an error.
The only thing that troubled me was apparently cJass got hooks correct where as vJass just made a butchery of the whole thing. That seems to be the only point really worth noting.
If anyone actually reported this to me, then I'd do it (not here for gawd's sake I rarely get to see this site, there's an official procedure for bugs reports...), unless it is a complete non-issue which I fear could be the case...Is Vex going to fix the recursion that most people will get when using hooks?
ah I see, just as I thought, it is a non-issue. I meant hooks not as a replace stuff, but as an event, intending them to replace would break encapsulation everywhere and stop people from having more than one hook for something...It kind of makes hooks useless in most cases where you'd use them. Add some kind of keyword or something that can let the coder opt out of using the hook function if they call the hooked function from inside.
ah I see, just as I thought, it is a non-issue. I meant hooks not as a replace stuff, but as an event, intending them to replace would break encapsulation everywhere and stop people from having more than one hook for something...
Actually, I think that if a person who knows C wants to learn JASS, this could be really helpful.
That's what I was getting at.I like the way they're made in cJASS Would it be hard to add the functionality to call the hooked function?
The things I'd report if I could.If anyone actually reported this to me, then I'd do it (not here for gawd's sake I rarely get to see this site, there's an official procedure for bugs reports...), unless it is a complete non-issue which I fear could be the case...
cJass is not intended to be used this way. Yes, if it detects the usage of vJass syntax, it translates the code to it. But the tool works with the whole map script, so you won't be able to simply convert triggers. Anyway, the processed file is saved in the tool dir as parsed_war3map.j, which is then parsed by JassHelper. Is there such an option in JassHelper to convert to pure jass?@Van Damm, does cJass use vJass (syntax) in any way? If so, there should be an option to convert it into vJass for submitting resources.
Could it help someone who wants to learn C?
That's the way ADOLF wanted to do it. And yes, assembler is his favorite programming language and he likes to code everything by hand.What I can't understand is why the tool itself is apparently written in assembly. The author is clearly out of their mind.
include "syn\\cj_types.j"