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

obj_destroy, called with more than one parameter, passes extra #55

Open
slayoo opened this issue Apr 7, 2018 · 0 comments
Open

obj_destroy, called with more than one parameter, passes extra #55

slayoo opened this issue Apr 7, 2018 · 0 comments
Labels
experimental-feature LIST, HASH and generally unfinished/unpolished objects. objects

Comments

@slayoo
Copy link
Member

slayoo commented Apr 7, 2018

As reported by @maynardGK at SF.net (https://sourceforge.net/p/gnudatalanguage/bugs/700/):

.cleanup returns an exception when obj_destroy is called with more than one argument. Evidently ti is seeing the caller's arguments.

$ gdl096

  GDL - GNU Data Language, Version 0.9.6 CVS 03/19

- For basic information type HELP,/INFO
- Please report bugs, feature or help requests and patches at:
  http://sourceforge.net/projects/gnudatalanguage/

GDL> tst=list(indgen(4),/ex)
GDL> tst1=list(indgen(4),/ex)
GDL> obj_destroy,tst1,tst
% CLEANUP: Incorrect number of arguments.
% Execution halted at: $MAIN$
    void obj_destroy( EnvT* e)
;...
;      BaseGDL* p= e->GetParDefined( 0);...
;      DObjGDL* op= static_cast<DObjGDL*>(p);
;      SizeT nEl=op->N_Elements();
;      for( SizeT i=0; i<nEl; i++)     {
;                 DObj actID=(*op)[i];
;                 e->ObjCleanup( actID);

Apparently addressed here (part of #32):
be6c58b

@slayoo slayoo added the objects label Apr 7, 2018
@GillesDuvert GillesDuvert added the experimental-feature LIST, HASH and generally unfinished/unpolished objects. label May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
experimental-feature LIST, HASH and generally unfinished/unpolished objects. objects
Projects
None yet
Development

No branches or pull requests

2 participants