<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 12 May 2013 15:41, Rel <span dir="ltr"><<a href="mailto:relmail@rambler.ru" target="_blank">relmail@rambler.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Benjamin Thaut, yes I know. but here is an example, if I add a class to the code like that:<div class="im"><br>
<br>
module main;<br>
<br>
extern (C) void* _Dmodule_ref = null;<br></div>
extern (C) void printf(const char*, ...);<div class="im"><br>
extern (C) void puts(const char*);<br>
extern (C) void exit(int);<br>
<br></div>
class A {<br>
int a = 100;<br>
int b = 200;<div class="im"><br>
};<br>
<br>
extern (C) void main() {<br>
scope(exit) {<br>
puts("Exiting!");<br>
exit(0);<br>
}<br>
<br></div>
A a; printf("%d %d\n", a.a, a.b);<br>
}<br>
<br>
I would get a lot of undefined symbols like '_D14TypeInfo_Class6__vtblZ', '_<u></u>D6object6Object8toStringMFZAya<u></u>', '_D6object6Object6toHashMFZk' and etc. I don't really need any runtime type information, is there a way to make a compiler not generating typeinfos ('-fno-rtti' doesn't work)?<br>
</blockquote></div><br></div><div class="gmail_extra">If you want to use classes, there must *always* be an Object class defined somewhere to link to. All classes derive from Object.<br clear="all"></div><div class="gmail_extra">
<br>-- <br>Iain Buclaw<br><br>*(p < e ? p++ : p) = (c & 0x0f) + '0';
</div></div>