-
Notifications
You must be signed in to change notification settings - Fork 59
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
ByRef Broken with v2 Beta 3 #31
Comments
Yeah, this repo is not up to date with the latest AHK v2 updates. Usually the README is correct, I haven't checked in a while, but I'd expect that if it says a108 then that is what it would work with. As far as the semantics, the aXXX versions such as a108 were for the "alpha" builds. Those were the early builds where many breaking changes were introduced. Then after that came the "beta" builds, which are designed to be more stable with less breaking changes going forward. And then I guess eventually they will release the stable version after that. It looks like you can download the older v2 versions here: Unfortunately there are no good solutions for you, until I or someone else updates this lib for beta3. You could take a shot at making the changes, and then contribute by submitting a pull request here yourself, if you wanted. For example, that ByRef change looks to be fairly simple to update, along with updating all the calls to the func as well with the &var prefix |
Thanks for the response! I'll definitely consider giving it a shot if you don't have plans to any time soon, although I'm unsure how/if the backwards compatibility would be able to be maintained with so many breaking changes. And I'm sure there's more hidden ones as well since it's so many versions apart. |
Yeah feel free to attempt it. I had no immediate plans to make updates. But yes of course, I completely forgot that one of the goals of this lib is to be backwards compatible with AHK v1.1 I'm not sure if these ByRef changes would work in that case since the interpreter would likely throw syntax errors on loadtime like in your screenshot. For this specific example, I just searched the file and it looks like That is a simple change for this specific
could be changed to:
Something like that, where we update the comment of the function too. And then when the function is called, the call would have to be replaced from:
to
You get the idea |
I'm not feeling brave today. Are you aware of any unofficial updates out there? |
Found this one: https://github.com/buliasz/AHKv2-Gdip |
Doing a regex search replace seemed to solve this part for me Search: "ByRef \b" worked for men |
yes that might work for v2, but this library is supposed to be backward compatible so that it works for both v1 and v2. however, if that is no longer possible, maybe we just drop that attempt that this point. i'm not sure |
Hi, the version semantics for ahk v2 beta are confusing to me, and it's unclear what version of the v2 beta I have, so I'm not sure if I'm ahead or behind the supported ahk version of this repo (I just downloaded the most recent release of the beta from the ahk website labed
v2 beta 3
)But it seems the byrefs in this library are now unsupported in v2:
https://lexikos.github.io/v2/docs/v2-changes.htm#byref
which causes this error:
Unsure of your plans for this repo and if you had achieved your goal originally. But I was hoping to migrate my scripts that depend on Gdip to v2, so that I could use other v2 libraries that are incompatible with v1. I'm not opposed to downgrading my v2 version in the meantime, but I'm not sure how to get my hands on build a108. The link your readme points toward the version I currently have.
The text was updated successfully, but these errors were encountered: