#85 Support class inheritance for Code Assist

open
nobody
None
5
2007-06-01
2007-06-01
Anonymous
No

Is it possible to support class inheritance for Code Assist?
It would be really nice to have Hierarchy view work as well, but the Code Assist is the really important part.
I'm dealing with a lot of Perl code that has quite a few derived classes, sometimes the inheritance tree is quite extensive and having the ability to see all the methods available in the code assist would be a great help.

Another very important feature would be to have a list of methods available in the object while editing it, i.e. object of $this, $self or $obj (whatever you call it)

Thanks,
Eugene
y_kushnir@hotmail.com

Discussion

  • Joaquín Ferrero

    Logged In: YES
    user_id=1572499
    Originator: NO

    Module::Inspector
    Class::Inspector
    Class::Inheritance

     
  • Jan Ploski

    Jan Ploski - 2007-06-11

    Logged In: YES
    user_id=86907
    Originator: NO

    These are important features made impossible by Perl's dynamic typing. I suppose that some simple heuristics could be used to find the likely base classes, but it will never be reliable due to the kinds of run-time hocus pocus you can do in Perl combined with the lack of static type information. Similarly, showing a list of methods for an object requires type information not available in Perl 5. There is an existing discussion thread about adding such information via voluntary annotations (to be officially supported in Perl 6). However, implementing it would require major effort and the annotations could still become inconsistent with code then.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks