D - what do you think of
- imr1984 <imr1984_member pathlink.com> Feb 09 2004
- "davepermen" <davepermen hotmail.com> Feb 09 2004
- imr1984 <imr1984_member pathlink.com> Feb 09 2004
- "davepermen" <davepermen hotmail.com> Feb 09 2004
- Sam McCall <tunah.d tunah.net> Feb 09 2004
ok i didnt like any of the List classes that i found, so i made my own. what do
you think:
List!(int) myList = new List!(int);
list.append(9);
list.prepend(4);
for(List!(int).Node node = myList.first; node; node = node.next)
{
printf("%u", node());//overloaded opCall
printf("%u", node.t);//not quite as elegant, but required sometimes
}
what do you guys think?
Feb 09 2004
'overload' foreach.. that'll be most fun:D and opRange should be doable, too, rather simple.. (even for placing into foreach..) "imr1984" <imr1984_member pathlink.com> schrieb im Newsbeitrag news:c07ic9$1dje$1 digitaldaemon.com...ok i didnt like any of the List classes that i found, so i made my own.
you think: List!(int) myList = new List!(int); list.append(9); list.prepend(4); for(List!(int).Node node = myList.first; node; node = node.next) { printf("%u", node());//overloaded opCall printf("%u", node.t);//not quite as elegant, but required sometimes } what do you guys think?
Feb 09 2004
is that possible? how do i do that? In article <c07p50$1p0t$1 digitaldaemon.com>, davepermen says...'overload' foreach.. that'll be most fun:D and opRange should be doable, too, rather simple.. (even for placing into foreach..) "imr1984" <imr1984_member pathlink.com> schrieb im Newsbeitrag news:c07ic9$1dje$1 digitaldaemon.com...ok i didnt like any of the List classes that i found, so i made my own.
you think: List!(int) myList = new List!(int); list.append(9); list.prepend(4); for(List!(int).Node node = myList.first; node; node = node.next) { printf("%u", node());//overloaded opCall printf("%u", node.t);//not quite as elegant, but required sometimes } what do you guys think?
Feb 09 2004
its all in the manuals.. "imr1984" <imr1984_member pathlink.com> schrieb im Newsbeitrag news:c085vu$2dtc$1 digitaldaemon.com...is that possible? how do i do that? In article <c07p50$1p0t$1 digitaldaemon.com>, davepermen says...'overload' foreach.. that'll be most fun:D and opRange should be doable, too, rather simple.. (even for placing into foreach..) "imr1984" <imr1984_member pathlink.com> schrieb im Newsbeitrag news:c07ic9$1dje$1 digitaldaemon.com...ok i didnt like any of the List classes that i found, so i made my own.
you think: List!(int) myList = new List!(int); list.append(9); list.prepend(4); for(List!(int).Node node = myList.first; node; node = node.next) { printf("%u", node());//overloaded opCall printf("%u", node.t);//not quite as elegant, but required sometimes } what do you guys think?
Feb 09 2004
imr1984 wrote:ok i didnt like any of the List classes that i found, so i made my own. what do you think: List!(int) myList = new List!(int); list.append(9); list.prepend(4); for(List!(int).Node node = myList.first; node; node = node.next) { printf("%u", node());//overloaded opCall printf("%u", node.t);//not quite as elegant, but required sometimes } what do you guys think?
linked and array based implementations. Implementing foreach and indexing would be nice. Sam
Feb 09 2004









"davepermen" <davepermen hotmail.com> 