Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-09 Thread Nicolas
Thank you Tom. Le samedi 8 juillet 2023 à 22:28:16 UTC+2, Tom M a écrit : > I don't think Vim 9 script has the kind of introspection you are asking > for. > > > The v:throwpoint variable might help, as mentioned in :help > throw-variables. > > Tom > > -- -- You received this message from

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-08 Thread Tom M
I don't think Vim 9 script has the kind of introspection you are asking for. The v:throwpoint variable might help, as mentioned in :help throw-variables. Tom -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to.

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-07 Thread Nicolas
This deal with is displaying last tree called function and line. echomsg expand('')->split('')[-1]->substitute('\d\+_\(\w\+\)\[\(\d\+\)\]', '\1: \2', "") Thank you Bram. Nicolas Le ven. 7 juil. 2023 à 21:57, Nicolas a écrit : > Oh thank you a lot Bram and all of you. It's helpful to know

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-07 Thread Nicolas
Oh thank you a lot Bram and all of you. It's helpful to know where we come from. In code, in Life too ;) Thank you Nicolas Le ven. 7 juil. 2023 à 04:19, Bram Moolenaar a écrit : > > Yegappan wrote: > > > On Tue, Jul 4, 2023 at 1:11 PM Lifepillar > wrote: > > > > > > On 2023-07-04, Nicolas

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-06 Thread Bram Moolenaar
Yegappan wrote: > On Tue, Jul 4, 2023 at 1:11 PM Lifepillar wrote: > > > > On 2023-07-04, Nicolas wrote: > > > Hi, > > > > > > Is there an equivalence in vim9 of __FILE__, __LINE__, and __FUNCTION__ > > > usage in C++ > >

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Yegappan Lakshmanan
On Tue, Jul 4, 2023 at 1:11 PM Lifepillar wrote: > > On 2023-07-04, Nicolas wrote: > > Hi, > > > > Is there an equivalence in vim9 of __FILE__, __LINE__, and __FUNCTION__ > > usage in C++ > > > > > For __LINE__ and

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Lifepillar
On 2023-07-04, Nicolas wrote: > Hi Life, > > My Main goal is to add prefix of vim9script current '__FUNCTION__' to my > debug message. Something along these lines, perhaps? vim9script def Debug(F: func) echo string(F) enddef def Foo() Debug(Foo) enddef def

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Nicolas
Hi Life, My Main goal is to add prefix of vim9script current '__FUNCTION__' to my debug message. Thank you for help Nicolas Le mardi 4 juillet 2023 à 22:11:31 UTC+2, Lifepillar a écrit : > On 2023-07-04, Nicolas wrote: > > Hi, > > > > Is there an equivalence in vim9 of __FILE__, __LINE__,

Re: vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Lifepillar
On 2023-07-04, Nicolas wrote: > Hi, > > Is there an equivalence in vim9 of __FILE__, __LINE__, and __FUNCTION__ > usage in C++ > The closest to __FILE__ is likely (`:help `). I use this snippet to get the path of the

vim9 Equivalence of __FILE__, __LINE__, and __FUNCTION__ usage in C++

2023-07-04 Thread Nicolas
Hi, Is there an equivalence in vim9 of __FILE__, __LINE__, and __FUNCTION__ usage in C++ ? Thank you Nicolas -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below