January 20, 2024 Learn » Re: Delegates and values captured inside loops | |||
|---|---|---|---|
| |||
...main()
{
auto names = [ "foo", "bar", "baz" ];
void delegate()[] dgs;
foreach (name; names)
{
(it) {
dgs ~= () => writeln... | |||
January 20, 2024 Learn » Delegates and values captured inside loops | |||
|---|---|---|---|
| |||
...main()
{
auto names = [ "foo", "bar", "baz" ];
void delegate()[] dgs;
foreach (name; names)
{
dgs ~= () => writeln(name... | |||
January 20, 2024 Learn » Re: Help optimize D solution to phone encoding problem: extremely slow performace. | |||
|---|---|---|---|
| |||
...indirection to the extent possible (I used delegate fields within a final class so the... | |||
January 19, 2024 General » Re: The forked elephant in the room | |||
|---|---|---|---|
| |||
Then I delegate anyone who uses Discord and thinks an issue there needs to be... | |||
January 20, 2024 General » Re: The forked elephant in the room | |||
|---|---|---|---|
| |||
...s the problem with leadership, you have to delegate, you can't do everything yourself. | |||
January 19, 2024 Learn » Re: Help optimize D solution to phone encoding problem: extremely slow performace. | |||
|---|---|---|---|
| |||
...double indirection. I'd just return a delegate instead (single indirection, no object lookup). This... | |||
January 16, 2024 Learn » Re: Help optimize D solution to phone encoding problem: extremely slow performace. | |||
|---|---|---|---|
| |||
...changed it to take a delegate instead, and the delegate either counts the result or... | |||
January 16, 2024 Learn » Re: Help optimize D solution to phone encoding problem: extremely slow performace. | |||
|---|---|---|---|
| |||
...stored in this Trie.
*/
void foreachEntry(void delegate(string path, string word) cb)
{
void impl... | |||
January 16, 2024 Learn » Re: Help optimize D solution to phone encoding problem: extremely slow performace. | |||
|---|---|---|---|
| |||
...stored in this Trie.
*/
void foreachEntry(void delegate(string path, string word) cb)
{
void impl... | |||
January 16, 2024 Learn » Re: Help optimize D solution to phone encoding problem: extremely slow performace. | |||
|---|---|---|---|
| |||
...stored in this Trie.
*/
void foreachEntry(void delegate(string path, string word) cb)
{
void impl... | |||
Copyright © 1999-2021 by the D Language Foundation