L
lig
hi ,
i am trying to do something that is not working (cuz i tried that)
so i hope for some ideas about it.
ok, so i have this recursive function, lets call it recFun
and i wanted to be able to call it in a specific order.
in a simple way : evaluating some expression in its original order
see the following part of code:
class retType
{
....
retType doSomething(someType4,retType);
....
};
retType recFun(someType3 ,someType1)
{
....
someType1 b,d;
someType2 c;
someType3 a;
....
return recFun(a,b).doSomething(c,recFun(a,c))
....
}
well , i was sure (for some weird reason...) that the first call
will be recFun(a,b) but actually the first call was recFun(a,c) .
the problem is that i wanted a specific order (first first
then the second .. obviously..) and it wont do it.
some of my limitations are: i dont want to keep any copies
of the results of the calls ( it creates more nodes in some tree ...
which obviously i dont want to count)
and the second is that i need the keep the order due some
other dependencies .
so any ideas/revelations will be most welcomed .
bye
lig
p.s.
this is my first post on this kind of groups so excuse me if
i dont meet the protocol rules ...
i am trying to do something that is not working (cuz i tried that)
so i hope for some ideas about it.
ok, so i have this recursive function, lets call it recFun
and i wanted to be able to call it in a specific order.
in a simple way : evaluating some expression in its original order
see the following part of code:
class retType
{
....
retType doSomething(someType4,retType);
....
};
retType recFun(someType3 ,someType1)
{
....
someType1 b,d;
someType2 c;
someType3 a;
....
return recFun(a,b).doSomething(c,recFun(a,c))
....
}
well , i was sure (for some weird reason...) that the first call
will be recFun(a,b) but actually the first call was recFun(a,c) .
the problem is that i wanted a specific order (first first
then the second .. obviously..) and it wont do it.
some of my limitations are: i dont want to keep any copies
of the results of the calls ( it creates more nodes in some tree ...
which obviously i dont want to count)
and the second is that i need the keep the order due some
other dependencies .
so any ideas/revelations will be most welcomed .
bye
lig
p.s.
this is my first post on this kind of groups so excuse me if
i dont meet the protocol rules ...