Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive

Conversation

@edi33416
Copy link
Contributor

Please see #2509 for related discussion.

@dlang-bot
Copy link
Contributor

Thanks for your pull request and interest in making D better, @edi33416! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please verify that your PR follows this checklist:

  • My PR is fully covered with tests (you can see the annotated coverage diff directly on GitHub with CodeCov's browser extension
  • My PR is as minimal as possible (smaller, focused PRs are easier to review than big ones)
  • I have provided a detailed rationale explaining my changes
  • New or modified functions have Ddoc comments (with Params: and Returns:)

Please see CONTRIBUTING.md for more information.


If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment.

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + druntime#2513"

@wilzbach
Copy link
Contributor

Changlog entry...

@rainers
Copy link
Member

rainers commented Mar 19, 2019

It doesn't help to print the deprecation when compiling druntime, it must be printed when the option is used, i.e. here: https://github.com/dlang/druntime/pull/2513/files#diff-50840eb79e3292d148af41006e3af980R51

@andralex
Copy link
Member

I think this message will be printed while druntime is built, i.e. it is not client-visible at all. Its helpfulness is limited.

A better way to go about this is to detect the situation when user code is attempting to set that variable to false, and emit a deprecation message at that time (i.e. at run time).

@andralex
Copy link
Member

@rainers saw yours after I typed in mine...

@edi33416 edi33416 force-pushed the deprecate_structNoDtor_flag branch from dcedabc to e543181 Compare March 22, 2019 21:39
Copy link
Member

@rainers rainers left a comment

Choose a reason for hiding this comment

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

Message still printed at the wrong time (when compiling druntime rather than when it is used).

@JinShil
Copy link
Contributor

JinShil commented Aug 18, 2019

Message still printed at the wrong time (when compiling druntime rather than when it is used).

But how does one print a deprecation warning at runtime? fprintf(stderr, ...)?

@rainers
Copy link
Member

rainers commented Aug 18, 2019

fprintf(stderr, ...)?

Yes.

@JinShil
Copy link
Contributor

JinShil commented Aug 19, 2019

#2743 was merged so I believe this can now be closed.

@thewilsonator
Copy link
Contributor

Please reopen if this is still required.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants