June 05, 2005 No ZipArchive property 'opApply' | ||||
---|---|---|---|---|
| ||||
The following example taken from the documentation does not compile. What am I doing wrong? |void main() |{ | ZipArchive archive = new ZipArchive(read("94410.zip")); | foreach (ArchiveMember am; archive) // line 9 | { | writefln("member name is ", am.name); | } | |} ERROR MSG: z.d(9): no property 'opApply' for type 'std.zip.ZipArchive' z.d(9): function expected before (), not 1 of type int Thanks, Andrew |
June 05, 2005 Re: No ZipArchive property 'opApply' | ||||
---|---|---|---|---|
| ||||
Posted in reply to a.c.edwards | -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 a.c.edwards schrieb am Sun, 5 Jun 2005 06:41:48 +0000 (UTC): > The following example taken from the documentation does not compile. What am I doing wrong? > >|void main() >|{ >| ZipArchive archive = new ZipArchive(read("94410.zip")); >| foreach (ArchiveMember am; archive) // line 9 foreach (ArchiveMember am; archive.directory){ >| { >| writefln("member name is ", am.name); >| } >| >|} > > ERROR MSG: > > z.d(9): no property 'opApply' for type 'std.zip.ZipArchive' > z.d(9): function expected before (), not 1 of type int Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCo4QS3w+/yD4P9tIRAih6AKDHVtDNiebfHfQDqUArMbXC9HnzqQCfQuZ9 zFVu2kP/hN3J39NkMoE+XsE= =9QUI -----END PGP SIGNATURE----- |
Copyright © 1999-2021 by the D Language Foundation