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

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

[Octave-bug-tracker] [bug #60781] Strange Error that should not happen!


From: anonymous
Subject: [Octave-bug-tracker] [bug #60781] Strange Error that should not happen!
Date: Tue, 15 Jun 2021 21:23:41 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0

Follow-up Comment #1, bug #60781 (project octave):

Octave gives syntax errors as expected and there are no persistent effects
from the code. Are you getting something different? If so, please post it.

Also indicate whether this is executed at the prompt or as a script. If as a
script foo.m, are you typing foo at the Octave prompt or are you calling it
with "octave foo.m"?


$ octave -qf
octave:1> A=[
> 1,
> 2,
> 3
> 
> function [y]=snow(x)
error: parse error:

  syntax error

>>> function [y]=snow(x)
           ^
octave:1> y=2*x;
error: 'x' undefined near line 1, column 1
octave:2> end
error: parse error:

  syntax error

>>> end
      ^
octave:2> 
octave:2> b=snow(5);
error: 'snow' undefined near line 1, column 1
octave:3> 



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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