November 03, 2010 General » Re: D/Objective-C Preliminary Design | |||
|---|---|---|---|
| |||
...giving it a selector:" Why not just make the D member function the selector name? | |||
September 20, 2010 Learn » Re: Applying a tuple to a function (and more) | |||
|---|---|---|---|
| |||
...Did you try to make selector_data a function?
auto selector_data() { return tuple("^/home... | |||
September 20, 2010 Announce » Re: D/Objective-C: hit a dead end, start anew | |||
|---|---|---|---|
| |||
...and you specify the selector (if you care about the selector, like in bindings). If... | |||
September 19, 2010 Learn » Re: Applying a tuple to a function (and more) | |||
|---|---|---|---|
| |||
...3.14 )
);
foreach(selector_data; selector_data_tuples) {
auto sel_regex_var = selector_data.field... | |||
September 19, 2010 Learn » Re: Applying a tuple to a function (and more) | |||
|---|---|---|---|
| |||
...Another possibility could be to write your selector like this:
auto t = tuple("bla", &(someFun... | |||
September 19, 2010 Learn » Re: Applying a tuple to a function (and more) | |||
|---|---|---|---|
| |||
...args) {
writeln(arg);
}
}
Then, I write the "selector" for it (in other part of the... | |||
September 18, 2010 Announce » Re: D/Objective-C: hit a dead end, start anew | |||
|---|---|---|---|
| |||
Yes, I know it's a valid selector name, I've seen it in a... | |||
September 18, 2010 Announce » Re: D/Objective-C: hit a dead end, start anew | |||
|---|---|---|---|
| |||
...Exactly. Note that this is a valid selector name. Though I might decide on something... | |||
September 18, 2010 Announce » Re: D/Objective-C: hit a dead end, start anew | |||
|---|---|---|---|
| |||
...t specify a selector for a declared method, how will the selector look like? In... | |||
September 18, 2010 Announce » Re: D/Objective-C: hit a dead end, start anew | |||
|---|---|---|---|
| |||
...C: parameters names are distinct from the selector and can be changed at will without... | |||
Copyright © 1999-2021 by the D Language Foundation