Search

January 14, 2024
General »
...call is not checked.
}

void accept(float delegate() del) {

}
```

The transitive nature of ``@nogc`` where...
January 12, 2024
General »
...i){ return 0; } }
    int opApply(scope int delegate(Row) dg){
        writeln("ITERATING OVER ROWS");
        return...
January 11, 2024
General »
...void registerCallback(void delegate() cb)
{
    cb();
}

void boo()
{
    extern (C) void delegate() cb;
    registerCallback(cb...
January 11, 2024
General »
...i.e., be able to express "this delegate's attributes is equal to the attributes...
January 12, 2024
General »
...well.
I think more escape hatches (@localnogc?) may help with the delegate situation you related.
January 12, 2024
General »

```d
void registerCallbackSystem(void delegate() @system cb) @system;
void registerCallbackSafe(void delegate() @safe cb) @safe...
January 12, 2024
General »
...scope int delegate()a dg)a{
    ....
}
//=>
void opApply[aset b](scope int delegate()a dg...
January 12, 2024
General »
...GC however.

But you can create a delegate yourself just fine.

In fact if you...
January 11, 2024
General »
...delegate() @system cb) @system;
	void registerCallbackSafe(void delegate() @safe cb) @safe;
	void registerCallbackNoGc(void delegate...
January 12, 2024
General »
...to keep the ``scope`` stuff on the delegate wrt. ``@safe`` as part of the weakening...
16 17 18 19 20 21 22 23 24 25 26 27
Next ›   Last »