[nem-bug] [Nemerle 0000632]: Increment of fields in structs
feedback at nemerle.org
feedback at nemerle.org
Wed May 3 20:11:41 CEST 2006
The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=632>
======================================================================
Reported By: Tobias
Assigned To: nazgul
======================================================================
Project: Nemerle
Issue ID: 632
Category: Compiler
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Resolution: duplicate
Duplicate: 338
Fixed in Version:
======================================================================
Date Submitted: 02-28-2006 21:14 CET
Last Modified: 05-03-2006 20:11 CEST
======================================================================
Summary: Increment of fields in structs
Description:
#pragma indent
using System.Console
struct A
public mutable x : int
mutable s = A()
WriteLine(s.x)
++s.x
WriteLine(s.x)
s.x += 1
WriteLine(s.x)
s.x = s.x + 1
WriteLine(s.x)
output ->
0
0
0
1
expected
0
1
2
3
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
duplicate of 0000338 Caching in ++x macro do not play nice w...
======================================================================
----------------------------------------------------------------------
nazgul - 05-03-06 20:11
----------------------------------------------------------------------
Yeah, this is a known bug. I increased its priority, it needs to be fixed
at once...
Issue History
Date Modified Username Field Change
======================================================================
02-28-06 21:14 Tobias New Issue
05-03-06 20:11 nazgul Relationship added duplicate of 0000338
05-03-06 20:11 nazgul Duplicate ID 0 => 338
05-03-06 20:11 nazgul Status new => resolved
05-03-06 20:11 nazgul Resolution open => duplicate
05-03-06 20:11 nazgul Assigned To => nazgul
05-03-06 20:11 nazgul Note Added: 0001226
======================================================================
More information about the bugs
mailing list