BCS wrote:
Reply to Qian,
Hi All,
I am new to D community. I have some problems with TimeOfDay struct.
I have defined a class:
========================================================
class Test
{
TimeOfDay* getTime() {
return a_valid_timeofday_pointer;
}
Could you expand on this function? The rest looks good but if this
function is returning a pointer to something that then goes out of scope
(a local var for instance) than that would be the bug.
Thanks BCS, I am not able to get my own code right now. I will post it
tomorrow.
--
Xu, Qian (stanleyxu)
http://stanleyxu2005.blogspot.com