help-octave
[Top][All Lists]
Advanced

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

Re: Make Octave behave more like Matlab


From: Matthias Brennwald
Subject: Re: Make Octave behave more like Matlab
Date: Sun, 18 Feb 2007 20:15:09 +0100

On 17.02.2007, at 19:08, John W. Eaton wrote:
| But: the below example with the switch / case statements won't work
| in Matlab if the single quotes are replaced by double quotes (Octave
| does not care). I hope this time I'm right -- I can't test because I
| don't have Matlab at the moment. I'm just forwarding the comments I
| received from a Matlab user).

So what is it that you want Octave to do here?

AND:

On 17.02.2007, at 19:08, Paul Roberts <address@hidden> wrote:

As for the quotes issue, why not use single quotes in octave?

Well, yes, of course that's what I'm doing usually. But I sometimes forget not to use double quotes (I'm human), and Octave does not tell me so. Now, if someone else uses my code with Matlab, he/she will get an error. So: is there a way to make Octave tell me not to use double quotes?

One idea I have about this is to add a feature in Octave that checks for double quotes, and produce a warning or an error. This feature would be turned off by default, but can be turned on by setting some flag. Or is there another (better) idea?

Matthias


-------
Matthias Brennwald
L├Ągernstrasse 6
CH 8037 Z├╝rich
+41 (0)44 364 17 03
address@hidden





reply via email to

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