Re: [Vala] Having a problem understanding Vala or Gee HashMap



On 06/08/2015 10:52, Jason Martin wrote:
I am porting some Java software to Vala but I cannot understand why the
following code will not work like I think it should.

Vala 0.26.2, libgee-0.8 on Xubuntu 15.04

Thanks in advance. I have used many variations and casts but I cannot get
@get or has_key for Gee.HashMap to work. (website samples work fine for me)

I placed notes in the comments.
You must provide the necessary functions to the HashMap constructor:
http://valadoc.org/#!api=gee-0.10/Gee.HashMap.HashMap


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]