January 14, 2024 General » Re: Warn about using the GC | |||
|---|---|---|---|
| |||
...call is not checked.
}
void accept(float delegate() del) {
}
```
The transitive nature of ``@nogc`` where... | |||
January 12, 2024 General » Re: Interpolated strings and SQL | |||
|---|---|---|---|
| |||
...i){ return 0; } }
int opApply(scope int delegate(Row) dg){
writeln("ITERATING OVER ROWS");
return... | |||
January 11, 2024 General » Re: named arguments, string interpolation, please stop. | |||
|---|---|---|---|
| |||
...void registerCallback(void delegate() cb)
{
cb();
}
void boo()
{
extern (C) void delegate() cb;
registerCallback(cb... | |||
January 11, 2024 General » Re: named arguments, string interpolation, please stop. | |||
|---|---|---|---|
| |||
...i.e., be able to express "this delegate's attributes is equal to the attributes... | |||
January 12, 2024 General » Re: named arguments, string interpolation, please stop. | |||
|---|---|---|---|
| |||
...well. I think more escape hatches (@localnogc?) may help with the delegate situation you related. | |||
January 12, 2024 General » Re: named arguments, string interpolation, please stop. | |||
|---|---|---|---|
| |||
```d void registerCallbackSystem(void delegate() @system cb) @system; void registerCallbackSafe(void delegate() @safe cb) @safe... | |||
January 12, 2024 General » Re: named arguments, string interpolation, please stop. | |||
|---|---|---|---|
| |||
...scope int delegate()a dg)a{
....
}
//=>
void opApply[aset b](scope int delegate()a dg... | |||
January 12, 2024 General » Re: named arguments, string interpolation, please stop. | |||
|---|---|---|---|
| |||
...GC however. But you can create a delegate yourself just fine. In fact if you... | |||
January 11, 2024 General » Re: named arguments, string interpolation, please stop. | |||
|---|---|---|---|
| |||
...delegate() @system cb) @system; void registerCallbackSafe(void delegate() @safe cb) @safe; void registerCallbackNoGc(void delegate... | |||
January 12, 2024 General » Re: named arguments, string interpolation, please stop. | |||
|---|---|---|---|
| |||
...to keep the ``scope`` stuff on the delegate wrt. ``@safe`` as part of the weakening... | |||
Copyright © 1999-2021 by the D Language Foundation