June 21, 2019 Learn » Re: Best practices of using const | |||
|---|---|---|---|
| |||
...that scenario)? I should check on std memoize & maybe code something up for understanding before... | |||
June 21, 2019 Learn » Re: Best practices of using const | |||
|---|---|---|---|
| |||
...be const by their nature? Isn't memoize a standard library feature? I should look... | |||
May 12, 2019 Issues » [Issue 19859] std.functional.memoize: Ability to clear the cache | |||
|---|---|---|---|
| |||
...com> --- Just tried implementing this by making memoize a struct with a static opCall: https... | |||
May 11, 2019 Issues » [Issue 19859] New: std.functional.memoize: Ability to clear the cache | |||
|---|---|---|---|
| |||
...19859
Issue ID: 19859
Summary: std.functional.memoize: Ability to clear the cache
Product: D... | |||
April 29, 2019 Issues » [Issue 13580] alias missing in overloaded homonym template | |||
|---|---|---|---|
| |||
...does:
---
template memoize(alias fun)
{
alias Args = string;
void memoize(Args args) {}
}
template memoize(alias... | |||
April 18, 2019 General » Re: `@safe` by default. What about `@pure` and `immutable` by default? | |||
|---|---|---|---|
| |||
...a variable, but certainly, something like Phobos' memoize wouldn't work). To try and force... | |||
March 25, 2019 General » Idea: Thread-global versions of memoize | |||
|---|---|---|---|
| |||
memoize uses thread local (static) cache. What's about making its "shared" version in standard... | |||
January 29, 2019 General » Re: Cached property (translate Python -> D) | |||
|---|---|---|---|
| |||
...does not compile:
struct C {
int _f() { writeln("Got!"); return 2; }
alias f = memoize!_f;
} | |||
January 29, 2019 General » Re: Cached property (translate Python -> D) | |||
|---|---|---|---|
| |||
...https://dlang.org/phobos/std_functional.html#memoize should helped you On Tue, Jan 29... | |||
January 17, 2019 Learn » Re: Runtime heterogeneous collections? | |||
|---|---|---|---|
| |||
...in each node. If you need to memoize the type of data for each node... | |||
Copyright © 1999-2021 by the D Language Foundation