Re: Comparing mixed expression and type tuples. How?
Simen kjaeraas Wrote: > static assert( is( TypeTuple!( int, "a" ) == TypeTuple!( int, "a" ) ); Look for this problem in the digitalmars.D.learn group, because I have seen this problem recently solved here (I don't remember the solution, it was easy). Bye, bearophile
Re: Installing D on MacOS X
On 05/25/2010 08:50 AM, Duke Normandin wrote: Hey... 2 hours into my D language experience Got some instructions from th digitalmars-d list for getting D installed on my Intel OS X box. Still having problems: dnormandin@ ~/programming/dmd2/code 06:40 am>> dmd firstApp.d ld warning: in /usr/local/gnat/lib/libgcc_s.10.5.dylib, missing required architecture i386 in file ld warning: in /usr/local/gnat/lib/gcc/x86_64-apple-darwin9.6.0/4.3.4/libgcc.a, file is not of required architecture ld: can't open output file for writing: firstApp, errno=21 collect2: ld returned 1 exit status --- errorlevel 1 First of all, if there are any D language developers tuned in, how about getting a $%&^* makefile happening to install _all_ language-related stuff where it's suppose to go? It's the first time I've read those instructions, but I find them highly suspect. You shouldn't need to copy anything outside the folders from the zip file. Anyway, what's the problem _now_, given the above error message?
Re: Installing D on MacOS X
On Tue, 25 May 2010 09:50:52 -0400, Duke Normandin wrote: Hey... 2 hours into my D language experience Got some instructions from th digitalmars-d list for getting D installed on my Intel OS X box. Still having problems: dnormandin@ ~/programming/dmd2/code 06:40 am >> dmd firstApp.d ld warning: in /usr/local/gnat/lib/libgcc_s.10.5.dylib, missing required architecture i386 in file ld warning: in /usr/local/gnat/lib/gcc/x86_64-apple-darwin9.6.0/4.3.4/libgcc.a, file is not of required architecture ld: can't open output file for writing: firstApp, errno=21 collect2: ld returned 1 exit status --- errorlevel 1 First of all, if there are any D language developers tuned in, how about getting a $%&^* makefile happening to install _all_ language-related stuff where it's suppose to go? Anyway, what's the problem _now_, given the above error message? I'll preface this by saying I am not and have never really been a MAC user, but I have a lot of experience on Linux. Could it be that you have a 64-bit MacOS and the 32-bit compatible libraries aren't installed? I'm not sure how mac works, but i386 is a 32-bit architecture, and it looks like your linking with files named x86_64. dmd is a 32-bit only compiler for now. Again, no idea how to do this on a Mac. -Steve
Installing D on MacOS X
Hey... 2 hours into my D language experience Got some instructions from th digitalmars-d list for getting D installed on my Intel OS X box. Still having problems: dnormandin@ ~/programming/dmd2/code 06:40 am >> dmd firstApp.d ld warning: in /usr/local/gnat/lib/libgcc_s.10.5.dylib, missing required architecture i386 in file ld warning: in /usr/local/gnat/lib/gcc/x86_64-apple-darwin9.6.0/4.3.4/libgcc.a, file is not of required architecture ld: can't open output file for writing: firstApp, errno=21 collect2: ld returned 1 exit status --- errorlevel 1 First of all, if there are any D language developers tuned in, how about getting a $%&^* makefile happening to install _all_ language-related stuff where it's suppose to go? Anyway, what's the problem _now_, given the above error message? -- Duke
Comparing mixed expression and type tuples. How?
import std.typetuple; static assert( is( TypeTuple!( int, "a" ) == TypeTuple!( int, "a" ) ); The above code asserts. Is there some other way to compare mixed tuples, or should i roll my own comparison function? -- Simen