Thanks to visit codestin.com
Credit goes to github.com

Skip to content

--trace alters the state of a vector #562

@klag

Description

@klag

if you run the following code, it correctly prints 6
but if you run it with --trace, it prints 11

from console import Console

service test {

    embed Console as Console

    main {
        i = 0
        a[i++] << {
            a = "a"
            b = "b"
        } 
        a[i++] << {
            a = "a"
            b = "b"
        } 
        a[i++] << {
            a = "a"
            b = "b"
        } 
        a[i++] << {
            a = "a"
            b = "b"
        } 
        a[i++] << {
            a = "a"
            b = "b"
        } 
        a[i++] << {
            a = "a"
            b = "b"
        } 

        println@Console( #a )()
    }
}

Metadata

Metadata

Labels

bugpriorityUrgent or high-priority issues (blockers for an upcoming release, needed hotfixes, etc.)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions