Nicholas Wilson
8d2fe40f4b
Fix #20330 - Make subtracting pointers of different types an error
2025-01-08 15:44:38 +08:00
Nicholas Wilson
8b90e07991
Add newline at EOF for changelog dmd.objc-improvements.dd ( #20563 )
2024-12-16 06:47:06 +08:00
The Dlang Bot
059b1ab407
Merge pull request #20559 from KitsunebiGames/objc
...
Objective-C Improvements
Signed-off-by: Dennis <dkorpel@users.noreply.github.com>
Signed-off-by: Nicholas Wilson <thewilsonator@users.noreply.github.com>
Merged-on-behalf-of: Dennis <dkorpel@users.noreply.github.com>
2024-12-15 22:48:39 +01:00
Walter Bright
a99a3894be
add __rvalue(expression) builtin ( #17050 )
2024-12-15 12:13:28 -08:00
LunaTheFoxgirl
bfa9192eb4
Add changelog
2024-12-15 19:03:06 +01:00
Paul Backus
6a7bd45a8e
Enable -preview=fieldwise by default
...
Introduced in PR #9331 , this was changed from a normal bug fix to a
-preview switch because enabling it triggered a suprious "statement is
not reachable" warning in Phobos. That warning has since been removed
(in PR #15568 ).
2024-12-08 21:19:17 +01:00
Nick Treleaven
a7f6b04a0c
Don't allow short constructor with non-void expression except this()
and super()
( #17489 )
2024-12-08 17:21:42 +08:00
Nick Treleaven
a13b00fab1
Improve -preview=safer
changelog entry ( #17490 )
2024-12-08 15:54:18 +08:00
Dennis Korpel
56eb579a45
Allow shortened method syntax for constructors
2024-12-04 12:16:44 +01:00
Dennis Korpel
74c40e9be0
Merge branch 'stable' into master
2024-11-29 12:46:40 +01:00
Richard (Rikki) Andrew Cattermole
6567f6f4a4
Fix bugzilla issue 24882 - COM class is allocated using GC not malloc
2024-11-29 08:37:07 +01:00
Walter Bright
347c883586
Implement Safer D ( #17044 )
2024-11-27 22:59:29 -08:00
Walter Bright
b70e66033c
add __traits getBitfieldOffset and getBitfieldWidth ( #17043 )
2024-11-10 20:22:59 +01:00
Nick Treleaven
74a18b0953
Add link to new ref
item
2024-10-25 15:20:54 +08:00
Nick Treleaven
d6149fdf0f
Fix TT
2024-10-25 15:20:54 +08:00
Nick Treleaven
817ecde722
Fix link
2024-10-25 15:20:54 +08:00
Quirin F. Schroll
26727f988f
Rename mixin-assign.dd to dmd.mixin-assign.dd
2024-09-29 13:04:26 +08:00
Quirin F. Schroll
2d8ab65540
Changelog for solving Issue 21564
2024-09-29 13:04:26 +08:00
Nicholas Wilson
3bcdd191d2
Add expect
and trap
to core.builtins
...
This exists mostly as a way to harmonise between the different spellings of the same concepts in LDC and GDC, rather than to provide a useful implementation from DMD.
2024-09-18 15:18:59 +01:00
Tim Schendekehl
0e8e67097d
Fix bugzilla 23812 - ImportC: allow adding function attributes to imported C functions ( #16820 )
...
This adds a new pragma for ImportC, which allows to set default storage
classes. Only `nothrow`, `@nogc` and `pure` are supported for now.
They can be disabled later using `#pragma attribute(pop)`.
Unknown storage classes are ignored.
2024-09-14 10:58:00 -07:00
Dennis Korpel
64df340150
Fix bugzilla 24748 - DMD can't output object files with fully qualified name, making -od overwirte each other file
2024-09-13 15:38:28 +01:00
Amaury Séchet
cbbc96f5b1
Remove criticalRegionLock
...
1. It is unused.
2. It doesn't provide the guarantee one think it does. See https://issues.dlang.org/show_bug.cgi?id=24741
2024-09-03 23:47:00 +02:00
Nicholas Wilson
0834c750aa
[Deprecation -> Error] nothrow function contracts that throw ( #16801 )
2024-08-26 11:36:18 +03:00
Quirin F. Schroll
97b71f1c2a
Reword dmd.auto-ref-adjacent.dd ( #16786 )
2024-08-25 08:43:53 +08:00
Nicholas Wilson
df377af9fe
[Deprecation -> Error] destructor field attributes ( #16802 )
2024-08-22 09:35:39 +03:00
Nicholas Wilson
0276d7e50a
Remove deprecation for bugzilla 22999 ( #16800 )
2024-08-21 10:01:48 +03:00
Dennis Korpel
ae2dc11619
Require adjacent auto ref
keywords
2024-08-15 00:18:12 +02:00
ryuukk
05b2c0dfe2
Fix bugzilla issue 24669 - Make -i work with C modules ( #16776 )
2024-08-11 19:34:17 +08:00
Quirin F. Schroll
8dabb67ee5
Update dmd.reflocal.dd to include auto ref
( #16772 )
2024-08-11 12:59:07 +02:00
Dennis
04025fdba6
Add --ftime-trace to dmd ( #16363 )
...
* Add --ftime-trace to dmd
* Refactor timetrace code for dmd.
Pass Outbuffer by ref,
move timetrace filename logic to main.d
2024-07-29 14:48:03 +02:00
Walter Bright
dc1daca611
allow ref on locals, globals, and statics ( #16428 )
...
* allow ref on locals, globals, and statics
* add const to opEquals() overrides
2024-07-23 14:42:15 -07:00
Nick Treleaven
3c13c3c548
[.di generation] Show TypeCtor method attributes after parameters ( #16732 )
...
* [.di generation] Show TypeCtor method attributes after parameters
Follow up to https://github.com/dlang/dmd/pull/16708 .
* Add changelog
2024-07-20 16:01:45 +02:00
Dennis Korpel
25f26e2bdf
Treat import("file")
as hex string
2024-07-01 01:21:36 +02:00
Nick Treleaven
5cfc340fc0
Update changelog for unsafe bool expressions ( #16624 )
...
The original changelog item was added to stable after 2.109.0, so will
appear in 2.109.1:
https://dlang.org/changelog/2.109.1.html#dmd.unsafe-boolean-values
However, fewer people may see point release changelogs, so its worth
repeating those for 2.110 IMO.
This also adds new items.
2024-06-26 20:57:35 +08:00
Nick Treleaven
c6058f9b76
Fix Bugzilla 17148 - Copying from const(void)[] to void[] breaks immu… ( #16583 )
2024-06-17 17:11:52 +08:00
Nick Treleaven
6c6a89e79f
[stable] Update changelog for unsafe bool values ( #16560 )
...
* Update changelog for unsafe bool values
* Casting to bool is actually safe
2024-06-04 10:35:53 +03:00
Iain Buclaw
09210fdd1b
purge changelog
2024-06-02 00:29:25 +00:00
Nick Treleaven
23f6757be9
Add changelog for #16334 ( #16470 )
2024-05-10 17:03:18 +02:00
Dennis
109dddb649
Fix error message in deprecation-limit.dd ( #16471 )
2024-05-10 17:02:53 +02:00
Walter Bright
0466791297
bitfields: add bitoffsetof, bitwidth, isBitfield ( #16444 )
2024-05-08 14:59:34 +03:00
Dennis
62e5e9f1af
Merge pull request #16422 from rikkimax/kill-omf
...
Kill off OMF support
2024-05-07 18:24:23 +02:00
zopsicle
5eb426e588
Add module core.sys.linux.sys.mount
...
The new module core.sys.linux.sys.mount provides definitions corresponding to
those in the header <sys/mount.h> on Linux.
2024-05-07 02:02:11 +02:00
richard (rikki) andrew cattermole
ad6e0c7a27
Kill off OMF support
2024-05-03 18:24:36 +12:00
Nick Treleaven
32e4910ab3
Make foreach_reverse
with a delegate an error ( #16418 )
...
* Make `foreach_reverse` with a delegate an error
Deprecation goes back to at least 2016:
68fb91a130 (diff-13f50d9dea67df89a0535d6b8957f3145d49f71f6b72fdd3913f329a265e1423R1155)
2024-04-27 20:25:20 +08:00
chloekek
ab7f6e65a5
Mark Thread.sleep as @trusted ( #16411 )
...
I am fairly convinced that no possible arguments to or global state at the time
of any call to Thread.sleep can result in memory corruption.
There is a precondition on Thread.sleep, that the duration must be
non-negative. On Windows, Thread.sleep calls Sleep, which takes an unsigned
integer. On POSIX, Thread.sleep calls nanosleep, which is specified to handle
negative durations gracefully. As such, violating this precondition should not
be a source of undefined behavior.
2024-04-26 10:57:35 +03:00
Dennis
49c4afd93f
Demangle symbols in linker errors ( #16021 )
...
* Demangle symbols in linker errors
Fix bugzilla issue 5573
* Fix test output regex of needspkgmod
---------
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2024-04-24 14:35:14 +03:00
Steven Schveighoffer
aec16d889c
Remove the interface function fullCollectNoStack from the gcinterface ( #16401 )
...
* Remove the interface function fullCollectNoStack from the gcinterface
* Fix tests that depend on the GC not scanning the stack.
* Remove all nostack remnants
* Add changelog entry
2024-04-23 15:06:21 +08:00
Dennis
499a85100a
Limit the number of deprecation messages by default ( #16403 )
2024-04-22 22:28:07 +08:00
Nick Treleaven
56a0ea80b1
Fix Bugzilla 14128 - AliasDeclaration allows expressions, causing false … ( #15863 )
...
* Fix Issue 14128 - AliasDeclaration allows expressions, causing false code for ThisExp
* Add test case
* Fix deprecation comment
* Add changelog
* Use dummy out param, not null
* Change to error with __edition_latest_do_not_use
2024-04-19 17:55:31 +03:00
Dennis
3b3d496210
dtoh: export extern(Windows)
and extern(System)
functions ( #16394 )
...
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2024-04-18 10:09:52 +03:00