Mercurial > projects > ldc
view test/globals1.d @ 102:027b8d8b71ec trunk
[svn r106] Turns out the last commit wasn't enough, now the D->LLVM process is even more split up.
Basically it tries to do the following in order: Resolve types, Declare symbols, Create constant initializers, Apply initializers, Generate functions bodies.
ClassInfo is now has the most useful(biased?) members working.
Probably other stuf...
author | lindquist |
---|---|
date | Sun, 18 Nov 2007 06:52:57 +0100 |
parents | 8d45266bbabe |
children | d9d5d59873d8 |
line wrap: on
line source
module globals1; char[] gstr = "hello world"; void main() { printf("%.*s\n", gstr.length, gstr.ptr); char[] str = gstr; printf("%.*s\n", str.length, str.ptr); }