patchGNU Octave - Patches: patch #9872, hgsetget superclass

 
 

patch #9872: hgsetget superclass

Submitted by:  None
Submitted on:  Tue 12 Nov 2019 10:12:31 PM UTC  
 
Category:  Core : other Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Tue 12 Nov 2019 10:12:31 PM UTC, original submission:  

This superclass adds a set and a get method to any derived subclass. This allows to access class properties in a similar way as the graphic handle objects.

It may be added into the 'scripts/miscellaneous' directory, as suggested by Carnë Draug [carandraug@octave.org].

The initial repository is:
- https://github.com/farhi/octave-hgsetget

NOTE: eventhough the hgsetget is now deprecated, it is still supported by Matlab, and some derived contributions may use it. I also propose a similar patch to be added into +matlab/+mixin/SetGet.m which is exactly the same, but having renamed all 'hgsetget' into 'SetGet'. The functionality is identical, execpt for the class name. To be fair, this implementation rather matches the 'SetGetExactNames' superclass as it expects all properties to be given as exact and case sensitive. However, the SetGet superclass is widely used, so that its scope is broader.

Thanks !

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #47854:  hgsetget.m added by None (6KiB - text/x-objcsrc)
file #47855:  SetGet.m added by None (5KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-12 None Attached File- => Added hgsetget.m, #47854
        Attached File- => Added SetGet.m, #47855

    Back to the top


    Powered by Savane 3.5