|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D.gnu - whether all memory operation all implemented by a new operator(if i overload it) in object.d
char [][char[]] a; like above that would result a map between char[] and char[], there must be some memory operations. so would it call object.d's new operator's implementation? and char []a; a.length=34; <--would that call object.d's new implementation? I wanna use full d's feature to write a kernel. so just ask whether d is suitable to write a kernel. -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ Aug 07 2006
davidl wrote:char [][char[]] a; like above that would result a map between char[] and char[], there must be some memory operations. so would it call object.d's new operator's implementation? and char []a; a.length=34; <--would that call object.d's new implementation? Aug 09 2006
I have tested GDC's implementation. I use gdc to compile a file containning that char[][char[]] a; I found it would use the internal file GC to do memory operation, and _d_new to new objects, I also found it use d_invariant??? few more characters in that name, don't know what that is. hope some one could tell me. But I think if we properly inplemented the internal GC functions, we can write a kernel in D. -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/ Aug 11 2006
|