vim9class, getting it usable

12 views
Skip to first unread message

Ernie Rael

unread,
Aug 18, 2023, 11:21:04 PM8/18/23
to vim...@googlegroups.com

Hi all,

Working on a project Feb/Mar using vim9 classes I filed several issues. Each time found a workaround, and went on. Finally ran into

https://github.com/vim/vim/issues/12089
vim9class: Calling a base class method through an extending class fails #12089

Also included "Calling a method in an extended class fails" (fixed a few days ago)

Put the project back on the shelf, didn't make sense to go on without inheritance. I wonder if it's worth doing 9.1 if classes (inheritance) doesn't work.

Took a quick look at the code in Apr/May, but seemed like too much to take on at the time. Thinking again about moving forward, however slowly, the first thing I thought to do is add some debug commands to vim that would dump class and hierarchy information; adding to the commands as more information was needed. Even the basic structure isn't clear to me and how it evolves to compilation/run-time. The examples in the issue referenced above work at script level, fail in a :def. Does this mean the basic class hierarchy structures are interpreted from script and then combined into some structures that are used by the compiler, are the structures also used during runtime. Anyway, I was encourages to see @yegappan get some things fixed in this area.

I'm not sure how I can best contribute (or, as goes without saying, how much time I'll have). The biggest problem is it looks like a steep learning curve. Looking for any suggestions on getting up to speed enough to contribute.

-ernie

PS I went with here, rather than discussion. Right choice?

Yegappan Lakshmanan

unread,
Aug 18, 2023, 11:23:02 PM8/18/23
to vim...@googlegroups.com
Hi,

On Fri, Aug 18, 2023 at 8:21 PM Ernie Rael <err...@raelity.com> wrote:
>
> Hi all,
>
> Working on a project Feb/Mar using vim9 classes I filed several issues. Each time found a workaround, and went on. Finally ran into
>
> https://github.com/vim/vim/issues/12089
> vim9class: Calling a base class method through an extending class fails #12089
>
> Also included "Calling a method in an extended class fails" (fixed a few days ago)
>

I have been working on this and have a fix for this. I will create a
PR for this.

Regards,
Yegappan

Yegappan Lakshmanan

unread,
Aug 18, 2023, 11:27:08 PM8/18/23
to vim...@googlegroups.com
On Fri, Aug 18, 2023 at 8:22 PM Yegappan Lakshmanan <yega...@gmail.com> wrote:
>
> Hi,
>
> On Fri, Aug 18, 2023 at 8:21 PM Ernie Rael <err...@raelity.com> wrote:
> >
> > Hi all,
> >
> > Working on a project Feb/Mar using vim9 classes I filed several issues. Each time found a workaround, and went on. Finally ran into
> >
> > https://github.com/vim/vim/issues/12089
> > vim9class: Calling a base class method through an extending class fails #12089
> >
> > Also included "Calling a method in an extended class fails" (fixed a few days ago)
> >
>
> I have been working on this and have a fix for this. I will create a
> PR for this.
>

Created the PR https://github.com/vim/vim/pull/12848 to fix this.
Reply all
Reply to author
Forward
0 new messages