8000 Rat.Denom() and Num() work differently, Denom appears to return a copy and Num a pointer · Issue #3521 · golang/go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Rat.Denom() and Num() work differently, Denom appears to return a copy and Num a pointer #3521
Closed
@gopherbot

Description

@gopherbot

by gnurizen:

Before filing a bug, please check whether it has been fixed since the
latest release. Search the issue tracker and check that you're running the
latest version of Go:

Run "go version" and compare against
http://golang.org/doc/devel/release.html  If a newer version of Go exists,
install it and retry what you did to reproduce the problem.

Thanks.

What steps will reproduce the problem?

http://play.golang.org/p/P7r1ZasEJ2

What is the expected output?

120/100

What do you see instead?

120/1

Which compiler are you using (5g, 6g, 8g, gccgo)?

go run

Which operating system are you using?

OS X

Which version are you using?  (run 'go version')

go version go1

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0