www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - byKeyValue does not exist for associative arrays

reply "Bayan Rafeh" <bayan.rafeh92 gmail.com> writes:
Apparently byKeyValue does not exist for associative arrays, 
should it?

void main() {
     int[string] a;
     a.byKeyValue(); //Error: byKeyValue doesn't exist.
}

If it shouldn't could someone remove it from the documentation?

http://dlang.org/hash-map.html
Jan 24 2015
parent reply ketmar <ketmar ketmar.no-ip.org> writes:
On Sat, 24 Jan 2015 11:17:03 +0000, Bayan Rafeh wrote:

 Apparently byKeyValue does not exist for associative arrays, should it?
=20
 void main() {
      int[string] a;
      a.byKeyValue(); //Error: byKeyValue doesn't exist.
 }
=20
 If it shouldn't could someone remove it from the documentation?
=20
 http://dlang.org/hash-map.html
it exists... in current git head. ;-)=
Jan 24 2015
parent reply "Bayan Rafeh" <bayan.rafeh92 gmail.com> writes:
On Saturday, 24 January 2015 at 11:18:57 UTC, ketmar wrote:
 On Sat, 24 Jan 2015 11:17:03 +0000, Bayan Rafeh wrote:

 Apparently byKeyValue does not exist for associative arrays, 
 should it?
 
 void main() {
      int[string] a;
      a.byKeyValue(); //Error: byKeyValue doesn't exist.
 }
 
 If it shouldn't could someone remove it from the documentation?
 
 http://dlang.org/hash-map.html
it exists... in current git head. ;-)
I thought the Arch repositories would be a little more up to date. Thanks :)
Jan 24 2015
next sibling parent Jonathan M Davis via Digitalmars-d-learn writes:
On Saturday, January 24, 2015 12:05:10 Bayan Rafeh via Digitalmars-d-learn
wrote:
 On Saturday, 24 January 2015 at 11:18:57 UTC, ketmar wrote:
 On Sat, 24 Jan 2015 11:17:03 +0000, Bayan Rafeh wrote:

 Apparently byKeyValue does not exist for associative arrays,
 should it?

 void main() {
      int[string] a;
      a.byKeyValue(); //Error: byKeyValue doesn't exist.
 }

 If it shouldn't could someone remove it from the documentation?

 http://dlang.org/hash-map.html
it exists... in current git head. ;-)
I thought the Arch repositories would be a little more up to date. Thanks :)
I'd be very surprised if they contained anything but an official release unless the package was labeled as a git build, so if something is in git head but not yet in an official release, then it's not likely to be in the arch repo. My guess would be that the online docs inadvertently contain more up-to-date information than the most recent release, so the problem is with the docs. - Jonathan M Davis
Jan 24 2015
prev sibling parent "H. S. Teoh via Digitalmars-d-learn" <digitalmars-d-learn puremagic.com> writes:
On Sat, Jan 24, 2015 at 04:32:43PM -0800, Jonathan M Davis via
Digitalmars-d-learn wrote:
 On Saturday, January 24, 2015 12:05:10 Bayan Rafeh via Digitalmars-d-learn
wrote:
 On Saturday, 24 January 2015 at 11:18:57 UTC, ketmar wrote:
 On Sat, 24 Jan 2015 11:17:03 +0000, Bayan Rafeh wrote:

 Apparently byKeyValue does not exist for associative arrays,
 should it?

 void main() {
      int[string] a;
      a.byKeyValue(); //Error: byKeyValue doesn't exist.
 }

 If it shouldn't could someone remove it from the documentation?

 http://dlang.org/hash-map.html
it exists... in current git head. ;-)
I thought the Arch repositories would be a little more up to date. Thanks :)
I'd be very surprised if they contained anything but an official release unless the package was labeled as a git build, so if something is in git head but not yet in an official release, then it's not likely to be in the arch repo. My guess would be that the online docs inadvertently contain more up-to-date information than the most recent release, so the problem is with the docs.
[...] This brings up a very important issue: versioning the docs. Not just Phobos docs, which are already versioned, but the language docs as well. I'll bring this up in the main D forum. T -- Three out of two people have difficulties with fractions. -- Dirk Eddelbuettel
Jan 24 2015