[nem-bug] [Nemerle 0000670]: Can't set the value of byte array element with index not divisible by 4 without explicit cast.

feedback at nemerle.org feedback at nemerle.org
Fri May 12 09:09:48 CEST 2006


The following issue has been SUBMITTED.
======================================================================
<http://nemerle.org/bugs/view.php?id=670> 
======================================================================
Reported By:                eelya
Assigned To:                
======================================================================
Project:                    Nemerle
Issue ID:                   670
Category:                   Compiler
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
======================================================================
Date Submitted:             05-12-2006 09:09 CEST
Last Modified:              05-12-2006 09:09 CEST
======================================================================
Summary:                    Can't set the value of byte array element with index
not divisible by 4 without explicit cast.
Description: 
Code: 

using System;
using System.Console;

   def a = array(2) : array[Byte];
   a[1] = 42;
   WriteLine("a[1] = {0}", a[1]);

makes output: 
   a[1] = 0

If expression a[1] = 42 :> Byte; is used instead of one above the output
is 
   a[1] = 42

(The same thing with any other index not divisible by 4)
======================================================================

Issue History
Date Modified  Username       Field                    Change              
======================================================================
05-12-06 09:09 eelya          New Issue                                    
======================================================================




More information about the bugs mailing list