bugGNU Octave - Bugs: bug #46889, conflict between function and...

 
 

bug #46889: conflict between function and +package with same name

Submitted by:  None
Submitted on:  Wed 13 Jan 2016 11:13:50 AM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: QuentinOriginator Email: -unavailable-
Open/Closed: OpenRelease: 4.0.0
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 03 Sep 2017 12:38:41 AM UTC, comment #3:

Confirmed. I created a '+plot/' directory and then a file 'myplot.m' inside that directory.

Rik <rik5>
Project Administrator
Fri 15 Jan 2016 03:55:06 PM UTC, comment #2:

In matlab I can do this even when a +load file is present:

> load file.mat


In octave, I get:

> error: invalid meta.package indexing


Here is another example:

I have some function "myplot.m" in a folder named +plot.

In matlab I can do:

> plot(x,y)
> plot.myplot


and both work.

In octave the second line returns:

> error: Invalid call to plot. Correct usage is:
> ...

Quentin <impact27>
Thu 14 Jan 2016 05:08:09 PM UTC, comment #1:

Confirmed, but is this just normal namespace shadowing?

What does Matlab do?

Mike Miller <mtmiller>
Project Administrator
Wed 13 Jan 2016 11:13:50 AM UTC, original submission:

If octave is launched from a folder containing a folder named '+load', the pkg command will not work.

(Terminal):

>mkdir +load
>octave


(Octave):
octave:1> pkg list
no packages installed.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by impact27 (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 03 Sep 2017 12:38:41 AM UTCrik5StatusNeed Info=>Confirmed
    Sun 13 Aug 2017 02:12:34 PM UTCjweCategoryOctave Forge Package=>Interpreter
      Severity2 - Minor=>3 - Normal
      Summarypkg can't find package if a folder named +load is present=>conflict between function and +package with same name
    Thu 14 Jan 2016 05:08:09 PM UTCmtmillerSeverity3 - Normal=>2 - Minor
      StatusNone=>Need Info
      Operating SystemMac OS=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1