No UFCS with nested functions?

Tobias Pankrath tobias at pankrath.net
Mon Nov 4 19:51:26 UTC 2019


Why does the following not work? It works, if I move the 'prop' 
out of 'foo'.

---
struct S {
	ubyte[12] bar;
}

bool foo (ref S s)
{
    static bool prop(const(ubyte)[] f) {
       return f.length > 1;
    }
	return s.bar[].prop;
}
---

Thanks!




More information about the Digitalmars-d-learn mailing list