|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #51784] mexGetVariable does returns empty matrix instead of nullptr for non-existant global variables |
Date: | Wed, 23 Aug 2017 18:19:05 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #51784 (project octave): Status: None => Need Info _______________________________________________________ Follow-up Comment #2: This works for me already without the patch. Could you verify that this is really necessary? There is a quirk in that run-octave doesn't work for testing. You need to install a version to some location like ~/local and execute that copy of Octave. I've attached a file mygetv.c. Try clear all mex mygetv.c mygetv ("global", "a") x = mygetv ("global", "a") In neither case is the empty matrix [] returned even though the variable "a" does not exist. (file #41633) _______________________________________________________ Additional Item Attachment: File name: mygetv.c Size:0 KB _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?51784> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |