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

C4Script: function IsRef() returns always false #95

Open
Somebodyisnobody opened this issue Dec 23, 2022 · 3 comments
Open

C4Script: function IsRef() returns always false #95

Somebodyisnobody opened this issue Dec 23, 2022 · 3 comments
Labels
script Issues related to C4Script

Comments

@Somebodyisnobody
Copy link
Contributor

The function isRef() returns always false since 2017 or 2018 according to @maxmitti. Opening an issue that it can be tracked.

@maxmitti maxmitti changed the title C4Script: function isRef() returns always false C4Script: function IsRef() returns always false Dec 23, 2022
@maxmitti
Copy link
Member

It’s probably broken for much longer already. I’m just aware of it since then.

@Fulgen301 Fulgen301 added bug script Issues related to C4Script labels Jan 27, 2023
@bbnote
Copy link

bbnote commented Oct 26, 2023

Is anybody working on this issue? If not, I'll give it a try.

@maxmitti
Copy link
Member

I think nobody is working on it. The question is if we want to fix it.
If it suddenly starts working, old code could change behavior, which we don’t want for compatibility reasons.

Furthermore, it is not as trivial as just adjusting the implementation of the engine function, because in LC’s C4Script there is no such thing as optional references.
Either an argument must be a reference and it is an error if it is not, or it doesn’t take a reference and it will only get a copy.

@Fulgen301 Fulgen301 removed the bug label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
script Issues related to C4Script
Projects
None yet
Development

No branches or pull requests

4 participants