D - Possible bug with associative arrays
- "Steve Adams" <adamss ascinet.com> Mar 19 2003
- Burton Radons <loth users.sourceforge.net> Mar 19 2003
In file t2.d:
struct s {
uint v;
uint x;
}
char[][s] h1;
int main()
{
s S;
h1[S] = "hello";
return( 0 );
}
gives the following when being built
[c:\test]dmd t2.d
C:\dmd\bin\..\..\dm\bin\link.exe t2,,,user32+kernel32/noi;
OPTLINK (R) for Win32 Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved
t2.obj(t2)
Error 42: Symbol Undefined __init_TypeInfo_S4t2_s
--- errorlevel 1
Mar 19 2003
Steve Adams wrote:In file t2.d: struct s { uint v; uint x; } char[][s] h1; gives the following when being built Error 42: Symbol Undefined __init_TypeInfo_S4t2_s
This is due to limitations in the TypeInfo model used in DMD. It'll be amended in the future.
Mar 19 2003








Burton Radons <loth users.sourceforge.net>