Re: [Vala] request to add another example to Projects/Vala/ListExample

2016-06-22 Thread Gilzad Hamuni
r of an implemented type (e.g. ArrayList, not List), so my example might prove something different in the end. Just in case it's relevant for our discussion. Best, gilzad Gesendet: Mittwoch, 22. Juni 2016 um 11:10 Uhr Von: "Gergely Polonkai" <gerg...@polonkai.eu> An: "

Re: [Vala] request to add another example to Projects/Vala/ListExample

2016-06-22 Thread Gergely Polonkai
Hello, this is a pretty old topic, but I have the rights to edit wgo pages. If you think it is actually relevant, I can add this example to the wiki. Best, Gergely Gergely Polonkai [image: https://]about.me/gergely.polonkai

Re: [Vala] request to add another example to Projects/Vala/ListExample

2016-03-21 Thread Gilzad Hamuni
Hi, just want to say that this is some precious info that I needed to learn yet. As a C#-guy I wonder from a "user's" point of view: If List implies strdup(), wouldn't it be consistent to automatically compare with strcmp() upon removing, too? Or am I making dangerous assumptions that are not

[Vala] request to add another example to Projects/Vala/ListExample

2016-03-20 Thread MohanR
Hi, I'm a beginner in vala. I would like to add the following example to this wiki link to make other beginners understand important thing about List. https://wiki.gnome.org/Projects/Vala/ListSample int main(string[] args) { List mylist = new List(); mylist.append("hi");

Re: [Vala] request to add another example to Projects/Vala/ListExample

2016-03-20 Thread MohanR
HI, I screwed-up that comment. sorry for that. I tried to upload a new version of that page, but wiki says I'm not allowed. Please help to update that page. int main(string[] args) { List list0 = new List(); List list1 = new List(); list0.append("helloworld"); /* g_strdup() takes place

Re: [Vala] request to add another example to Projects/Vala/ListExample

2016-03-19 Thread Luca Bruno
Hi, thanks a lot for your contribution. The wiki is open, you can register and edit it freely! :) Also pay attention to the comment about "how" and "how". In C, they are equivalent because those are const strings and have the same address. But with List they get copied. However with List they

Re: [Vala] request to add another example to Projects/Vala/ListExample

2016-03-19 Thread MohanR
##SELECTION_END##HI, I screwed-up that comment. sorry for that. I tried to upload a new version of that page, but wiki says I'm not allowed. Please help to update that page. int main(string[] args) { List list0 = new List(); List list1 = new List(); list0.append("helloworld"); /*

Re: [Vala] request to add another example to Projects/Vala/ListExample

2016-03-19 Thread Luca Bruno
Oh wow, just realized I cannot edit it either... will talk to some gnome admins on Monday. Thanks. On Fri, Mar 18, 2016 at 10:27 PM, MohanR wrote: > HI, > > I screwed-up that comment. sorry for that. I tried to upload a new version > of that page, but wiki says I'm not