Prevents the import of object module when -dnostdlib has been passed#10184
Conversation
With -dnostdlib a possible module called "object" should be considered as a "normal" module
|
Thanks for your pull request and interest in making D better, @ErnyTech! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
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 referencesYour 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 locallyIf 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 + dmd#10184" |
|
Most of |
|
The problem is that the compiler automatically imports |
|
I wonder if it would be better to allow the source to specify this in some way? Maybe through a pragma? |
|
I've created an alternative solution here: #10188
|
Geod24
left a comment
There was a problem hiding this comment.
Having a standard module with definitions such as alias size_t = (void*).sizeof; or string is not inherently incompatible with a -dnostdlib. So IMO they should not be conflated.
I think most things in |
|
The need for such a feature is so specialized that the programmer doing it shouldn't have any difficulty creating a dummy object.d with nothing in it to import. I don't think this feature pulls its weight. |
Depends on #10180