Re: [Vala] Strings and template comparison
- From: Luca Bruno <lethalman88 gmail com>
- To: vala-list gnome org
- Subject: Re: [Vala] Strings and template comparison
- Date: Thu, 07 May 2015 14:43:48 +0200
On 07/05/2015 14:41, Craig wrote:
Hello,
Why are strings not compared by value when they're passed into template
functions? Consider this gist:
https://gist.github.com/weberc2/4131654ff068d27f9cde
Is there anything I can do to get value comparison back in templates?
Because generics don't enclose an equality function. Check whether the
type is a string, then cast to string.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]