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

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

[Octave-bug-tracker] [bug #55891] "help @class/method" emits an error ra


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #55891] "help @class/method" emits an error rather than showing documentation
Date: Tue, 12 Mar 2019 12:48:06 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #3, bug #55891 (project octave):

What does Matlab do?  Does it accept this syntax for getting help or generally
referencing methods in classes?  Or does it use some other syntax?

The conflict is that we are matching superclass identifiers (address@hidden) 
with a
greedy regexp in which there may be whitespace around the "@" symbol and NAMES
may be of the form FOO.BAR.BAZ... and there may be whitespace around the "."
symbol.  SO, that leads to the problem of trying to also recognize command
syntax.  So I guess my question is really whether Matlab recognizes something
like


foo @bar
-verbatim

as a command or errors because it looks like a superclass reference in the
wrong context.

If it accepts this syntax as a command and the command line, what does it do
inside a classdef method or constructor?

I'm fairly confident that it is not looking at the first word and trying to
look up a symbol and decide whether it should be treated as a command or not,
but who knows?

In short (well, maybe this comment could have actually BEEN shorter): WTF are
the rules supposed to be?


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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