octave-maintainers
[Top][All Lists]
Advanced

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

Re: Should xelem bounds-check (and reference-check) when debugging optio


From: David Spies
Subject: Re: Should xelem bounds-check (and reference-check) when debugging options are on?
Date: Mon, 23 Jun 2014 12:06:06 -0600

Here's my proposed changeset for this (labeled "Added safety checks to Array::xelem"):

http://hg.octave.org/octave-dspies/graph/

Thanks,
David


On Fri, Jun 20, 2014 at 11:42 AM, David Spies <address@hidden> wrote:
Hello,

When constructing (or accessing) matrix elements, I'd like to be able to call a function which does bounds-checking (and in the case of assignment, reference-count-checking with an exception if there's more than one reference) only when debugging options are turned on.

I'm proposing adding these checks to the xelem method instead of creating a new method for it.  I can't imagine why it's necessary to have a method that does "no checks of any kind ever! Not even when debugging!"

What do people think of the idea?

Thanks,
David



reply via email to

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