Ticket #16 (closed defect: fixed)

Opened 2 years ago

Last modified 9 months ago

Console IO or QuoteIterator slicing issue

Reported by: teqdruid Assigned to: kris
Priority: critical Milestone:
Component: mango.io Version: SVN HEAD
Keywords: Cc: kris

Description

import mango.io.Stdout;
import mango.io.Stdin;

int main()
{
    Stdout ("MANGO I/O EXAMPLE 1"c) (CR) (CR); //The 'c' postfix is necessary to identify the string as UTF8
    
    char[] name;

    Stdout ("NAME: "c) (); //Usually a flush only occurs with a line feed, so we trigger it manually with ()
    Stdin.get(name);

    Stdout (CR) (CR) ("Hello, "c) (name) ("; how are you?"c) (CR);

    return 0;
}

Prints:

MANGO I/O EXAMPLE 1

NAME: John


Hello, ohn
; how are you?

After I enter my name. Is the iterator slicing it incorrectly?

Change History

04/06/06 03:37:51 changed by kris

  • owner set to kris.
  • status changed from new to assigned.

12/07/07 02:40:16 changed by kris

  • status changed from assigned to closed.
  • resolution set to fixed.

moved to Tango