Razvan Nitu
8ac51eb0d4
Merge pull request #8635 from WalterBright/utfIsPointer
...
remove isPointer use in std.utf
2022-12-01 18:08:52 +08:00
Razvan Nitu
662055e60a
Merge pull request #8636 from WalterBright/arrayIsPointer
...
remove use of isPointer from std.array
2022-12-01 18:08:28 +08:00
Razvan Nitu
a74405154a
Merge pull request #8640 from WalterBright/stdioIsPointer
...
remove unused reference to isPointer from std.stdio
2022-12-01 18:04:22 +08:00
Razvan Nitu
e0dfddf77d
Merge pull request #8641 from WalterBright/implicitConv
...
replace isImplicitlyConvertible with is expression
2022-12-01 18:03:51 +08:00
Walter Bright
2c7e732236
replace isImplicitlyConvertible with is expression
2022-12-01 00:52:55 -08:00
Walter Bright
7bcb8a013d
remove unused reference to isPointer from std.stdio
2022-12-01 00:32:20 -08:00
Walter Bright
e0f0e876b3
remove isScalar check from std.traits.isPointer
2022-12-01 09:32:09 +01:00
Walter Bright
12bb393be3
remove use of isPointer from std.array
2022-11-30 23:36:17 -08:00
Walter Bright
4706ae5dd1
remove isPointer use in std.utf
2022-11-30 23:12:57 -08:00
Geod24
1d50f24922
Remove usages of 'in' on Windows C bindings
2022-11-30 16:16:40 +01:00
Mathias LANG
b58d652ce5
Re-instate accidentally reverted fixes on RefCounted ( #8599 )
...
Those fixes were done in PR #8509 but PR #8368 accidentally reverted them.
2022-11-30 16:16:01 +01:00
RazvanN7
e305dc9f79
Fix getSymbolsByUDA by replacing broad __traits(compiles) with a more focused condition
2022-11-28 08:14:42 +00:00
Nick Treleaven
6c9a746295
Fix getdelim trusted encapsulation
2022-11-25 11:21:06 +00:00
Nick Treleaven
f06030819b
Remove double @trusted
2022-11-25 10:50:20 +00:00
Nick Treleaven
7b8fbf0350
Remove unsafe opDispatch
...
Use @trusted lambda for DIGITAL_MARS_STDIO impl
2022-11-25 10:50:20 +00:00
Adam D. Ruppe
f710b083fd
fix #23507 sockets are blocking by default, this needs to reflect that
2022-11-25 04:07:27 +01:00
Adam D. Ruppe
87ebb09b16
add Socket.release method to allow transitioning the handle from the object's ownership to outsdie control, so the destructor won't close it anymore
2022-11-24 00:50:37 +01:00
Nick Treleaven
4796637441
Add LockedFile.opDispatch
2022-11-19 20:26:01 +00:00
Nick Treleaven
89ce0c94de
Remove LockedFile.fp method
...
We can use `fps` for `ferror` calls instead.
2022-11-19 17:08:00 +00:00
Nick Treleaven
59749cbc64
Remove 2 unnecessary vars
2022-11-19 14:42:03 +00:00
Nick Treleaven
96ac2e88c8
Tweak LockedFile unittest
2022-11-19 14:39:34 +00:00
Nick Treleaven
b5df5011a7
Move trusted_FGETC to LockedFile method
2022-11-19 14:39:07 +00:00
Nick Treleaven
b036f74ef2
Use LockedFile struct to enforce safe interface
...
Instead of wrong trusted_FUNLOCK.
Note: trusted_FGETC does have a @safe interface.
2022-11-17 11:51:10 +00:00
Nick Treleaven
9f05dd4d4a
Remove unnecessary trusted lambda
2022-11-16 09:46:05 +00:00
Nick Treleaven
80be7fdba2
Revert "Use slice instead of pointer to avoid lambdas"
...
This reverts commit a5912ca262
.
2022-11-16 09:45:36 +00:00
aG0aep6G
26c7f44de8
fix issue 23488 - std.format.sformat mishandles char ranges
2022-11-15 21:10:14 +01:00
Nick Treleaven
01c80ba94b
fp._ptr arithmetic
2022-11-15 18:05:45 +00:00
Nick Treleaven
2da49ee4c8
Make ReadlnAppender.putonly take const array
2022-11-15 17:57:31 +00:00
Nick Treleaven
597e73fd93
3 more @trusted calls
2022-11-15 17:52:11 +00:00
Nick Treleaven
cf131b797d
Make StdioException.opCall @safe
2022-11-15 17:40:33 +00:00
Nick Treleaven
a5912ca262
Use slice instead of pointer to avoid lambdas
2022-11-15 17:39:34 +00:00
Nick Treleaven
40df30bc6e
Make readlnImpl @safe and use @trusted lambdas
2022-11-15 17:32:04 +00:00
RJ Nowling
6034c4f1ed
Update parameter name to match documentation
...
The documentation for flip(size_t) indicates that the variable name is `pos`, but the parameter is named `i`. This PR changes the parameter name to `pos` to match the documentation.
2022-11-15 06:26:05 +01:00
Nick Treleaven
5267ccf0b8
Make std.stdio.File.readln @safe
2022-11-14 15:38:54 +00:00
Lucian Danescu
c81788f512
style fix
2022-11-12 19:40:28 +02:00
Lucian Danescu
322fed7bf7
add local imports
2022-11-12 19:29:28 +02:00
Lucian Danescu
8293310cd8
rename variables
2022-11-09 23:28:55 +02:00
Lucian Danescu
452b1def78
same name fix
2022-11-07 19:20:19 +02:00
Lucian Danescu
cdee7e6939
remove redundant attributes in typecons.d
2022-11-04 21:52:10 +01:00
Paul Backus
be1dad3480
Fix 23453 - Generic iota should be a forward range
2022-11-03 14:39:25 -04:00
Per Nordlöw
b9ba6c2d97
Merge remote-tracking branch 'upstream/master' into avoid-EnumMembers-in-formatValueImpl-enum
2022-11-02 13:16:32 +01:00
Nick Treleaven
94997e70fb
[std/array] Fix wrong Appender docs 'global locking for each append'
...
@schveiguy explained there is a thread-local cache that avoids a global
lock once the cache is filled.
See https://github.com/dlang/dlang.org/pull/3445#discussion_r1002773401 .
Add link to spec (capacity LREF already exists just above Appender).
2022-11-01 19:18:27 +01:00
Iain Buclaw
e99ec12056
Merge pull request #8618 from ibuclaw/merge_stable
...
merge stable
2022-11-01 14:58:25 +01:00
Iain Buclaw
a2c7d6d7e9
Merge remote-tracking branch 'upstream/stable' into merge_stable
2022-11-01 11:40:20 +00:00
Razvan Nitu
68c8a87029
Merge pull request #8590 from nordlow/enforce-to-assert
...
Replace enforce(!empty with assert(!empty at the beginning of range m…
2022-11-01 17:45:50 +08:00
Razvan Nitu
e92aa0e9f4
Merge pull request #8595 from nordlow/reduce-put-in-formatValueImpl-enum
...
Avoid two calls to put in enum overload of formatValueImpl
2022-11-01 17:44:47 +08:00
Dennis
a3536c6d20
Merge pull request #8604 from ntrel/allocator-docs
...
Improve std.experimental.allocator docs
2022-10-24 11:49:18 +02:00
Per Nordlöw
05d6e97d1e
Use ref element in foreach in assocArray to avoid any calls to copy constructor of element type
2022-10-20 14:12:46 +02:00
Bastiaan Veelo
afda65c58e
Clarify the format flags documentation. ( #8612 )
...
* Clarify the format flags documentation.
Resolve a `then`/`than` error and focus on what the flag does instead of on the default behaviour when the flag is absent. This way the descriptions for the `-` and `=` flags are more in line.
2022-10-19 05:37:49 +08:00
Nick Treleaven
6f62de0728
Fix assumeUnique RUNNABLE_EXAMPLE tests
...
These get wrapped in `void main {...}` by both dspec_tester and
run_examples.js. Workaround this.
2022-10-17 23:51:02 +02:00