Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
vala
vala
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 702
    • Issues 702
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 38
    • Merge Requests 38
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • GNOME
  • valavala
  • Issues
  • #229

Closed
Open
Opened Sep 03, 2011 by bugzilla-migration@bugzilla-migrationReporter

Comparing the same Value results in false

Submitted by Blaž Tomažič

Link to original bug (#658112)

Description

The next piece of code prints out false instead of true. The comparison doesn't work when comparing the same object or different Values with same data (not sure if this should check for equality of Value objects or data stored by them).

void main() { Value a = 42; Value b = 42; stdout.printf("%s\n", a == a ? "true" : "false"); stdout.printf("%s\n", a == b ? "true" : "false"); }

Version: 0.14.x

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/vala#229