On Friday, 26 August 2022 at 20:42:07 UTC, JG wrote:
Where can I find rules about casting. e.g. I assume casting
away immutable is undefined behavior (or implementation defined
behavior). What about casting to immutable (I would expect at
most it only to be allowed if your type has no reference
Where can I find rules about casting. e.g. I assume casting away
immutable is undefined behavior (or implementation defined
behavior). What about casting to immutable (I would expect at
most it only to be allowed if your type has no references e.g.
ints okay but int[] not etc.) Casting const aw
On the main forum, Paul Backus proposed a nested function as well as a
scoped lock.
On 8/26/22 10:13, mw wrote:
>Object lock = (a particular condition) ? realLock : null;
And I want to point out that "a particular condition" must not change
between the check above and the following synchr
Hi,
I haven't tried, but can I do:
```
void foo(lots of params) {
Object lock = (a particular condition) ? realLock : null;
synchronized(lock) {
// lots of complex code block here
}
}
```
i.e depending on a a particular condition, the complex code block
either need to be sync-prote
On 8/25/22 11:50 PM, MichaelBi wrote:
you are right, the package install is OK. but after running dub build
--compiler=dmd, the error of "ld: library not found for - lssl" is still
there...
I've not had problems since updating to the M1, but my system was
upgraded through many years, so I d