March 19, 2003 Possible bug with associative arrays | ||||
---|---|---|---|---|
| ||||
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 |
March 19, 2003 Re: Possible bug with associative arrays | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steve Adams | 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.
|
Copyright © 1999-2021 by the D Language Foundation