January 24, 2024 Learn » Re: Function Composition | |||
|---|---|---|---|
| |||
...double x) { return 2+x;} ;
template Delegate(T)
{
T delegate(T) compose( T function(T... | |||
January 24, 2024 Issues » [Issue 22941] failing unittest should omit stack trace only if assert was thrown directly by the unittest | |||
|---|---|---|---|
| |||
...0x55dbfac12be2] ??:? int object.ModuleInfo.opApply(scope int delegate(object.ModuleInfo*)).__lambda2(immutable(object.ModuleInfo*)) [0x55dbfac18f83... | |||
January 24, 2024 Learn » Function Composition | |||
|---|---|---|---|
| |||
...x+2;} ;
int delegate (int) compose( int delegate(int)second, int delegate(int)first)
{
return... | |||
January 23, 2024 Issues » [Issue 24353] New: Misleading error for foreach when opApply has wrong qualifier | |||
|---|---|---|---|
| |||
...error message:
---
struct S
{
int opApply(int delegate(int) dg)
{
return 0;
}
}
void example()
{
const... | |||
January 23, 2024 Learn » opApply + const | |||
|---|---|---|---|
| |||
...D
struct Stuff {
int opApply(scope int delegate(Stuff*) dg)
{
return 0;
}
};
void main()
{
Stuff... | |||
January 22, 2024 General » Re: Improve the OOP ABI | |||
|---|---|---|---|
| |||
...import std;
auto test(T)(scope T delegate() dg)
{
import std.datetime.stopwatch;
StopWatch sw... | |||
January 21, 2024 Learn » Re: Delegates and values captured inside loops | |||
|---|---|---|---|
| |||
...void delegate(int)[] dgs;
string myname="Original ";
foreach (name; names)
{
int j=0;
void delegate... | |||
January 20, 2024 General » Re: `alias x = v.x;` not working in struct bodies? | |||
|---|---|---|---|
| |||
...the address of `x` will yield a delegate, and not a pointer to the member... | |||
January 21, 2024 Learn » Re: Partial function application (Currying) | |||
|---|---|---|---|
| |||
...e. struct, or stack) and have a delegate point to both it and a patch... | |||
January 20, 2024 Learn » Partial function application (Currying) | |||
|---|---|---|---|
| |||
...to do this?
```d
void doemar( int delegate(int y) f)
{
for(int i=0... | |||
Copyright © 1999-2021 by the D Language Foundation