|
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 - error compiling?
import std.string;
int main( char [][] args )
{
char[] str1;
real[char[]] array;
str1 = "akcom";
str1 ~= "rofl";
array[str1] = 1235.0123;
printf( "%f %f\n", 123.123, array[str1] );
return 0;
}
the output:
123.123000 -0.000000
Aug 09 2004
[You're posting to a deprecated 'group. Taking it to digitalmars.D....] akcom wrote: <snip> Aug 10 2004
Stewart Gordon wrote:[You're posting to a deprecated 'group. Taking it to digitalmars.D....] akcom wrote: <snip> Aug 10 2004
lf works for double, f works for float, neither works for real. In article <cfb75r$9mb$1 digitaldaemon.com>, akcom says...Stewart Gordon wrote:[You're posting to a deprecated 'group. Taking it to digitalmars.D....] akcom wrote: <snip> Nov 07 2004
|