octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50854] zeros, ones, NaN, Inf, NA: "like" keyw


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #50854] zeros, ones, NaN, Inf, NA: "like" keyword
Date: Thu, 4 Jun 2020 07:03:25 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #21, bug #50854 (project octave):

A classdef could overload the "is*" methods which might lead to unexpected
results again.

What about overriding the "type" input variable with class(var) in case of the
"like" syntax and keep the input validation for "type" as it was. (Store
is_like beforehand.)
That might also allow to slightly reduce the complexity of the conversion
block.

I haven't tested the changes yet. But they look good otherwise.
Could you prepare a mercurial patch including a commit message?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?50854>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]