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

Fix a few scope related deprecation warnings #2778

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

s-ludwig
Copy link
Member

No description provided.

@s-ludwig s-ludwig requested a review from l-kramer February 10, 2024 16:34
@@ -300,7 +300,7 @@ class HTTPResponse {
InetHeaderMap headers;

/// All cookies that shall be set on the client for this request
@property ref DictionaryList!Cookie cookies() { return m_cookies; }
@property scope ref DictionaryList!Cookie cookies() return { return m_cookies; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@property scope ref DictionaryList!Cookie cookies() return { return m_cookies; }
@property ref DictionaryList!Cookie cookies() scope return { return m_cookies; }

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need the scope at all here? I still couldn't force myself to look through the spec to fully grasp the scope additions (assuming that everything is correctly documented by now) and from the observed effects I'm unsure whether return a) implies scope, b) is required to be used in conjunction with scope, or c) has an independent effect on the parameter/this pointer.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need scope only if we intend to call this function with a scope DictionaryList!Cookie is my understanding. But I have a similar issue with the spec.

@s-ludwig s-ludwig force-pushed the scope_deprecation_fixes branch from b5cc51f to b1a6292 Compare February 10, 2024 17:17
@s-ludwig s-ludwig merged commit 1e2f8d8 into master Feb 10, 2024
74 checks passed
@s-ludwig s-ludwig deleted the scope_deprecation_fixes branch February 10, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants