[Top][All Lists]

[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 13:05:23 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

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

Oops, botched verbatim tags...  Here it is again:

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 NAME
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

foo @bar

as a command or errors because it looks like a superclass reference in
thewrong 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:


  Message sent via Savannah

reply via email to

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