|
From: | Piotr Held |
Subject: | [Octave-bug-tracker] [bug #51784] mexGetVariable does returns empty matrix instead of nullptr for non-existant global variables |
Date: | Fri, 18 Aug 2017 13:30:40 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.86 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?51784> Summary: mexGetVariable does returns empty matrix instead of nullptr for non-existant global variables Project: GNU Octave Submitted by: jsoh425 Submitted on: Fri 18 Aug 2017 05:30:39 PM UTC Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: Piotr Held Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Any _______________________________________________________ Details: I double checked this with Matlab (and their documentation) and the way it's suppose to work is that if the global variable doesn't exist mexGetVariable should return nullptr. Currently it returns an empty matrix. I am attaching patch to fix this problem. _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Fri 18 Aug 2017 05:30:39 PM UTC Name: patch_mexGetVariable.diff Size: 909B By: jsoh425 <http://savannah.gnu.org/bugs/download.php?file_id=41571> _______________________________________________________ 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] |