Mercurial > vim
comparison src/eval.c @ 31416:f088f1d97eee v9.0.1041
patch 9.0.1041: cannot define a method in a class
Commit: https://github.com/vim/vim/commit/ffdaca9e6f3d39af6857ac52ced9385df203a152
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 9 21:41:48 2022 +0000
patch 9.0.1041: cannot define a method in a class
Problem: Cannot define a method in a class.
Solution: Implement defining an object method. Make calling an object
method work.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 09 Dec 2022 22:45:03 +0100 |
parents | 60b1d266548d |
children | e31fc75f6aff |
comparison
equal
deleted
inserted
replaced
31415:4fd33db887f2 | 31416:f088f1d97eee |
---|---|
293 if (fc == NULL) | 293 if (fc == NULL) |
294 return FAIL; | 294 return FAIL; |
295 | 295 |
296 // Shortcut to call a compiled function with minimal overhead. | 296 // Shortcut to call a compiled function with minimal overhead. |
297 r = call_def_function(partial->pt_func, argc, argv, | 297 r = call_def_function(partial->pt_func, argc, argv, |
298 DEF_USE_PT_ARGV, partial, fc, rettv); | 298 DEF_USE_PT_ARGV, partial, NULL, fc, rettv); |
299 if (fc_arg == NULL) | 299 if (fc_arg == NULL) |
300 remove_funccal(); | 300 remove_funccal(); |
301 if (r == FAIL) | 301 if (r == FAIL) |
302 return FAIL; | 302 return FAIL; |
303 } | 303 } |