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

Make TCPConnection/UDPConnection postblit/dtor scope #392

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

Geod24
Copy link
Contributor

@Geod24 Geod24 commented Feb 20, 2024

While building a project depending on vibe-http,
I got the following deprecation message:

vibe-core/source/vibe/core/stream.d(189,7):        scope variable `source` calling non-scope member function `TCPConnection.~this()`

Fixing the issue with the destructor shifts it to the postblit, so both needs to be fixed. The same fix was applied to the UDPConnection as a result.

While building a project depending on vibe-http,
I got the following deprecation message:
```
vibe-core/source/vibe/core/stream.d(189,7):        scope variable `source` calling non-scope member function `TCPConnection.~this()`
```
Fixing the issue with the destructor shifts it to the postblit,
so both needs to be fixed. The same fix was applied to
the UDPConnection as a result.
@s-ludwig s-ludwig merged commit c3f932c into vibe-d:master Feb 20, 2024
12 checks passed
@Geod24 Geod24 deleted the mlang/ScopeDestructor branch February 20, 2024 15:15
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