Re: RBTree delegates and types

2018-03-19 Thread Viktor via Digitalmars-d-learn
On Monday, 19 March 2018 at 11:30:13 UTC, Steven Schveighoffer wrote: Yes, you need a `this` pointer for it to work. However, we can do this by encapsulating the return type with an auto function: https://run.dlang.io/is/inSzaU Sorry I didn't get this right away. Interesting chicken-and-egg p

Re: RBTree delegates and types

2018-03-19 Thread Viktor via Digitalmars-d-learn
On Sunday, 18 March 2018 at 17:21:58 UTC, Steven Schveighoffer wrote: On 3/18/18 8:34 AM, Viktor wrote: Hey, I'm trying to convert an old legacy app to D and have a couple of questions. It has been a very fun weekend! First, I could not make std.container.rbtree use a delegate

RBTree delegates and types

2018-03-18 Thread Viktor via Digitalmars-d-learn
Hey, I'm trying to convert an old legacy app to D and have a couple of questions. It has been a very fun weekend! First, I could not make std.container.rbtree use a delegate for a comparator. The docs say it should be possible, but I got a weird error. I tracked it down to RedBlackTreee.op

Re: Tango ftp module

2009-06-09 Thread viktor
Trass3r Wrote: > Has anyone ever tried the tango ftp code? > Nothing really works for me, even for simple cases. > > For example, when using ls() it gets stuck in parseMlstLine() cause the > exception > throw new FTPException("CLIENT: Bad syntax in MLSx response", "501"); > doesn't get caught. >