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

Function in a tuple breaks trace on Neko. #3

Open
0b1kn00b opened this issue Jun 15, 2011 · 6 comments
Open

Function in a tuple breaks trace on Neko. #3

0b1kn00b opened this issue Jun 15, 2011 · 6 comments

Comments

@0b1kn00b
Copy link
Contributor

var a = Tuple2.create("A", function(x) { return x; } );
trace(a);
neko, win 7 64bit, haxe r3821 nightly.

//really weird bug, but replicated 100%

Invalid call
FilePos(null,Main::main,35) FilePos(null,haxe.data.collections.Map::$statics,1)
FilePos(null,_Prelude.AbstractProduct::toString,349) FilePos(null,_Prelude.AbstractProduct::$init,332) FilePos(null,neko.Lib::print,48) FilePos(null,Main::main,30)

diff --git a/src/main/haxe/Prelude.hx b/src/main/haxe/Prelude.hx
index 6aebb1f..45ff844 100644
--- a/src/main/haxe/Prelude.hx
+++ b/src/main/haxe/Prelude.hx
@@ -419,10 +419,10 @@ private class AbstractProduct implements Product {
}

private function getShow(i : Int) {

  • return if(null == _shows[i]) {
  • if(null == _shows[i]) {
    _shows[i] = Stax.getShowFor(productElement(i));
  • } else
  •  _shows[i];
    
  • }
  •  return _shows[i];
    
    }
    }
@sledorze
Copy link
Collaborator

What's the diff below exactly?

On Wed, Jun 15, 2011 at 6:24 AM, 0b1kn00b <
reply@reply.github.com>wrote:

var a = Tuple2.create("A", function(x) { return x; } );
trace(a);
neko, win 7 64bit, haxe r3821 nightly.

//really weird bug, but replicated 100%

Invalid call
FilePos(null,Main::main,35)
FilePos(null,haxe.data.collections.Map::$statics,1)
FilePos(null,_Prelude.AbstractProduct::toString,349)
FilePos(null,_Prelude.AbstractProduct::$init,332)
FilePos(null,neko.Lib::print,48) FilePos(null,Main::main,30)

diff --git a/src/main/haxe/Prelude.hx b/src/main/haxe/Prelude.hx
index 6aebb1f..45ff844 100644
--- a/src/main/haxe/Prelude.hx
+++ b/src/main/haxe/Prelude.hx
@@ -419,10 +419,10 @@ private class AbstractProduct implements Product {
}

private function getShow(i : Int) {

  • return if(null == _shows[i]) {
  • if(null == _shows[i]) {
    _shows[i] = Stax.getShowFor(productElement(i));
  • } else
  •  _shows[i];
    
  • }
  •  return _shows[i];
    
    }
    }

Reply to this email directly or view it on GitHub:
#3

Stphane Le Dorze

Tel: +33 (0) 6 08 76 70 15

@0b1kn00b
Copy link
Contributor Author

It's a patch

git diff --help

On Wed, Jun 15, 2011 at 8:52 AM, sledorze <
reply@reply.github.com>wrote:

What's the diff below exactly?

On Wed, Jun 15, 2011 at 6:24 AM, 0b1kn00b <
reply@reply.github.com>wrote:

var a = Tuple2.create("A", function(x) { return x; } );
trace(a);
neko, win 7 64bit, haxe r3821 nightly.

//really weird bug, but replicated 100%

Invalid call
FilePos(null,Main::main,35)
FilePos(null,haxe.data.collections.Map::$statics,1)
FilePos(null,_Prelude.AbstractProduct::toString,349)
FilePos(null,_Prelude.AbstractProduct::$init,332)
FilePos(null,neko.Lib::print,48) FilePos(null,Main::main,30)

diff --git a/src/main/haxe/Prelude.hx b/src/main/haxe/Prelude.hx
index 6aebb1f..45ff844 100644
--- a/src/main/haxe/Prelude.hx
+++ b/src/main/haxe/Prelude.hx
@@ -419,10 +419,10 @@ private class AbstractProduct implements Product {
}

private function getShow(i : Int) {

  • return if(null == _shows[i]) {
  • if(null == _shows[i]) {
    _shows[i] = Stax.getShowFor(productElement(i));
  • } else
  •  _shows[i];
    
  • }
  •  return _shows[i];
    
    }
    }

Reply to this email directly or view it on GitHub:
#3

Stphane Le Dorze

Tel: +33 (0) 6 08 76 70 15

Reply to this email directly or view it on GitHub:
#3 (comment)

@0b1kn00b
Copy link
Contributor Author

Well, I mean, it fixes the crashing bug. Strange but true.

On Wed, Jun 15, 2011 at 1:49 PM, laurence taylor polysemantic@gmail.comwrote:

It's a patch

git diff --help

On Wed, Jun 15, 2011 at 8:52 AM, sledorze <
reply@reply.github.com>wrote:

What's the diff below exactly?

On Wed, Jun 15, 2011 at 6:24 AM, 0b1kn00b <
reply@reply.github.com>wrote:

var a = Tuple2.create("A", function(x) { return x; } );
trace(a);
neko, win 7 64bit, haxe r3821 nightly.

//really weird bug, but replicated 100%

Invalid call
FilePos(null,Main::main,35)
FilePos(null,haxe.data.collections.Map::$statics,1)
FilePos(null,_Prelude.AbstractProduct::toString,349)
FilePos(null,_Prelude.AbstractProduct::$init,332)
FilePos(null,neko.Lib::print,48) FilePos(null,Main::main,30)

diff --git a/src/main/haxe/Prelude.hx b/src/main/haxe/Prelude.hx
index 6aebb1f..45ff844 100644
--- a/src/main/haxe/Prelude.hx
+++ b/src/main/haxe/Prelude.hx
@@ -419,10 +419,10 @@ private class AbstractProduct implements Product {
}

private function getShow(i : Int) {

  • return if(null == _shows[i]) {
  • if(null == _shows[i]) {
    _shows[i] = Stax.getShowFor(productElement(i));
  • } else
  •  _shows[i];
    
  • }
  •  return _shows[i];
    
    }
    }

Reply to this email directly or view it on GitHub:
#3

Stphane Le Dorze

Tel: +33 (0) 6 08 76 70 15

Reply to this email directly or view it on GitHub:
#3 (comment)

@sledorze
Copy link
Collaborator

I think it's a compiler issue.
You better report it to the Mailing List so that the real reason would be
fixed. :)
Are you a Stax commiter?

On Wed, Jun 15, 2011 at 1:51 PM, 0b1kn00b <
reply@reply.github.com>wrote:

Well, I mean, it fixes the crashing bug. Strange but true.

On Wed, Jun 15, 2011 at 1:49 PM, laurence taylor <polysemantic@gmail.com

wrote:

It's a patch

git diff --help

On Wed, Jun 15, 2011 at 8:52 AM, sledorze <
reply@reply.github.com>wrote:

What's the diff below exactly?

On Wed, Jun 15, 2011 at 6:24 AM, 0b1kn00b <
reply@reply.github.com>wrote:

var a = Tuple2.create("A", function(x) { return x; } );
trace(a);
neko, win 7 64bit, haxe r3821 nightly.

//really weird bug, but replicated 100%

Invalid call
FilePos(null,Main::main,35)
FilePos(null,haxe.data.collections.Map::$statics,1)
FilePos(null,_Prelude.AbstractProduct::toString,349)
FilePos(null,_Prelude.AbstractProduct::$init,332)
FilePos(null,neko.Lib::print,48) FilePos(null,Main::main,30)

diff --git a/src/main/haxe/Prelude.hx b/src/main/haxe/Prelude.hx
index 6aebb1f..45ff844 100644
--- a/src/main/haxe/Prelude.hx
+++ b/src/main/haxe/Prelude.hx
@@ -419,10 +419,10 @@ private class AbstractProduct implements Product
{
}

private function getShow(i : Int) {

  • return if(null == _shows[i]) {
  • if(null == _shows[i]) {
    _shows[i] = Stax.getShowFor(productElement(i));
  • } else
  •  _shows[i];
    
  • }
  •  return _shows[i];
    
    }
    }

Reply to this email directly or view it on GitHub:
#3

Stphane Le Dorze

Tel: +33 (0) 6 08 76 70 15

Reply to this email directly or view it on GitHub:
#3 (comment)

Reply to this email directly or view it on GitHub:
#3 (comment)

Stphane Le Dorze

Tel: +33 (0) 6 08 76 70 15

@fponticelli
Copy link
Collaborator

I can fix it in Stax but since it seems to be a haxe/neko issue you should report it on the issue list.

@jdegoes
Copy link
Owner

jdegoes commented Jun 15, 2011

CC'ing Franco who will be able to provide more insight.

Regards,

John A. De Goes
Twitter: @jdegoes
LinkedIn: http://linkedin.com/in/jdegoes

On Jun 14, 2011, at 10:24 PM, 0b1kn00b wrote:

var a = Tuple2.create("A", function(x) { return x; } );
trace(a);
neko, win 7 64bit, haxe r3821 nightly.

//really weird bug, but replicated 100%

Invalid call
FilePos(null,Main::main,35) FilePos(null,haxe.data.collections.Map::$statics,1)
FilePos(null,_Prelude.AbstractProduct::toString,349) FilePos(null,_Prelude.AbstractProduct::$init,332) FilePos(null,neko.Lib::print,48) FilePos(null,Main::main,30)

diff --git a/src/main/haxe/Prelude.hx b/src/main/haxe/Prelude.hx
index 6aebb1f..45ff844 100644
--- a/src/main/haxe/Prelude.hx
+++ b/src/main/haxe/Prelude.hx
@@ -419,10 +419,10 @@ private class AbstractProduct implements Product {
}

private function getShow(i : Int) {

  • return if(null == _shows[i]) {
  • if(null == _shows[i]) {
    _shows[i] = Stax.getShowFor(productElement(i));
  • } else
  •  _shows[i];
    
  • }
  •  return _shows[i];
    
    }
    }

Reply to this email directly or view it on GitHub:
#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants