On Saturday, 1 June 2019 at 14:24:11 UTC, Robert M. Münch wrote:
The myFilter struct is the implementation which myClass.put()
should use to iterate over all objects.
Which ones? The E-objects, or the objects contained in myClass,
which you don't want to know about?
All things being only
On 2019-06-01 04:43:13 +, Alex said:
That's ok, but could you provide an example anyway? Is it like this?
´´´
void main(){
auto target = new myClass!int();
target.objects.length = 4;
auto val = 42;
put(target, val, testfunction); // does the test function enters here?
On Friday, 31 May 2019 at 16:24:28 UTC, Robert M. Münch wrote:
The code is just to show the problem and not meant to compile.
I couldn't get anything to compile...
That's ok, but could you provide an example anyway? Is it like
this?
´´´
void main(){
auto target = new myClass!int();
t
On 2019-05-31 11:07:00 +, Alex said:
Not sure, if I understood your problem correctly.
I can imagine... I try my best :-)
It is meant that the class myClass defines an array of myOtherClass objects?
Yes. So there is one class having an array of other stuff.
The code does not compile a
On Thursday, 30 May 2019 at 18:34:31 UTC, Robert M. Münch wrote:
I have myClass and I want to add a way where I can provide a
delegate to iterate over myClass.objects when a member function
put(...) of myClass is called. The idea is that a user of
myClass can provide something like an "iterator
I have myClass and I want to add a way where I can provide a delegate
to iterate over myClass.objects when a member function put(...) of
myClass is called. The idea is that a user of myClass can provide
something like an "iterator filter" so that the function is only called
on a subset of myCla