Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing pointers should always pass Pointer class, not Int class, etc. #752

nddrylliog opened this issue Dec 6, 2013 · 1 comment


Copy link

commented Dec 6, 2013

Test case:

check: func <T> (t: T) {
    if (T size != Pointer size) {
        "Fail! T size should be #{Pointer size}, is #{T size}" println()

main: func {
    a: Int*

    b: UInt64*

    c: Char*

On 64-bit, it fails at the first check.

@ghost ghost assigned nddrylliog Dec 6, 2013

nddrylliog added a commit that referenced this issue Dec 6, 2013

This comment has been minimized.

Copy link
Member Author

commented Dec 6, 2013

Again, ugly code, but it works.

@nddrylliog nddrylliog closed this Dec 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.