help-octave
[Top][All Lists]
Advanced

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

Re: A way to make octave ignore certain lines? Specifically coder.*


From: Robb
Subject: Re: A way to make octave ignore certain lines? Specifically coder.*
Date: Tue, 12 Jul 2016 15:48:30 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

On 06/17/2016 02:05 PM, siko1056 wrote:
If you post a meaningful example file and tell which lines should be run, and
which ones should be ignored, then one might come up with a good idea. If
the only line was

coder.cstructname(*);

just construct a classdef coder, with a method "cstruchtname (str)" that
does nothing.

HTH,
Kai



--
View this message in context: 
http://octave.1599824.n4.nabble.com/A-way-to-make-octave-ignore-certain-lines-Specifically-coder-tp4677776p4677780.html
Sent from the Octave - General mailing list archive at Nabble.com.

I did do this and it ended up working at first:
coder.cstructname=@()[]

Unfortunately the function sometimes is called with functions that I would rather be ignored. Such as:


coder.cstructname("foostring", foofunction);

This solution still evaluates the foofunction, really I would like this line skipped over completely.

I certainly can wrap everything thing in
if exist('OCTAVE_VERSION', 'builtin') == 0,

but I was hoping for something a little more transparent on the matlab side of things.




reply via email to

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