help-octave
[Top][All Lists]
Advanced

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

Troubles with Fortran function naming convention ?


From: CdeMills
Subject: Troubles with Fortran function naming convention ?
Date: Wed, 10 Jul 2013 04:54:32 -0700 (PDT)

Hello,

I converted quickly some piece of Fortran code, and it seems the interpreter
get lost:

original fortran code:

function myfunc(x, n)
 ...
 myfunc = some_var

The way I translated it:

function myfunc = myfunc(x)
n = size(x);
...
myfunc = some_var;
keyboard

At the first call, the "keyboard" statement is reached. After that, all I
get is "some elements in list of return values are undefined" . Restarting
Octave is the only cure.

Is the use of the same symbol as return variable and function name valid ? 
Octave 3.6.4 under cygwin.

Regards

Pascal



--
View this message in context: 
http://octave.1599824.n4.nabble.com/Troubles-with-Fortran-function-naming-convention-tp4655485.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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