-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
std.Build.LazyPath: add sub path method #19024
std.Build.LazyPath: add sub path method #19024
Conversation
38ccae5
to
4ab7128
Compare
Wouldn't this make it really easy to dangle a LazyPath since the parent now requires a stable address? |
Possibly, I could make the parent be a union similar to LazyPath so then this wouldn't be an issue. I can't make the parent be a LazyPath unless it was a pointer because recursion. |
How about adding a nullable subpath field to the LazyPath? Ideally something like
but for backwards compatibility maybe flip it around and add the subpath to the other union fields instead? Actually, wouldn't this only be needed for the |
Probably, that sounds like it'll work the best. I'll try things out after work today. |
Does this implementation prevent something like You might want to take a look at the |
I don't think it does protect from that in its current state. I'll see if I can prevent escaping when I work on the changes tonight. |
40d4668
to
61b72f8
Compare
61b72f8
to
b9a5d36
Compare
Looking at how much would have to be changed, this is too much for now. Gonna close this PR, if someone wishes to finish this then I recommend some discussion on how this should be implemented so it doesn't break everything. |
Closes #16067
This implements joined lazy paths (sub path)