Thread overview | |||||
---|---|---|---|---|---|
|
February 04, 2019 [Issue 19640] Linker error when compiling delegate with betterC | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19640 anonymous4 <dfj1esp02@sneakemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |betterC -- |
December 16, 2019 [Issue 19640] Linker error when compiling delegate with betterC | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19640 Radu Racariu <radu.racariu@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |radu.racariu@gmail.com --- Comment #2 from Radu Racariu <radu.racariu@gmail.com> --- As Razvan pointed out, that delegate will create a closure and allocate on the GC heap. This is fixable by changing `call` to look like ``` int call(scope int delegate() d) ``` Note the scope keyword. Also, main should look like ``` extern(C) void main() ``` Please use the learn forums (https://forum.dlang.org/group/learn) before adding a bug, this kind of information is easily available there. -- |
December 17, 2019 [Issue 19640] Linker error when compiling delegate with betterC | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=19640 Seb <greeenify@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |greeenify@gmail.com Resolution|--- |WONTFIX -- |
Copyright © 1999-2021 by the D Language Foundation