Reply to topic  [ 2 posts ] 
bug in yput_global? 
Author Message
Yorick Master

Joined: Tue Mar 07, 2006 10:31 pm
Posts: 125
Location: Meudon, France
Post bug in yput_global?

I have the impression yput_global is malfunctioning: it seems to ignore the second argument. I have set up a minimalistic example:
Y_bug(int n)
  long x_ref=yget_ref(1);
  long y_ref=yget_ref(0);
  double * x=ypush_d(0);
  double * y=ypush_d(0);

In Yorick, when I type "bug,x,y", I should get x==1 and y==2. I get x==y==2. To get the correct result, I must put yarg_drop(1) between the two yput_global.

I'm using Yorick 2.1.05 under Mac OS X.

Best regards, Thibaut.

Thu Feb 26, 2009 2:42 am
Profile WWW
Yorick Master

Joined: Mon Nov 22, 2004 9:43 am
Posts: 354
Location: Livermore, CA, USA
I just committed the fix to yorick/yapi.c. Thank you.

Sat Feb 28, 2009 1:06 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.