Hi,

Inside a Vim9 def function, I am not able to create a legacy
script-local function
using the "s:" prefix. Example:

----------------------------------------------------------------------------------------
vim9script

def T()
  func s:F1()
  endfunc
  var Fn: func = s:F1
enddef
defcompile

func s:F2()
endfunc

var Fn: func = s:F2
----------------------------------------------------------------------------------------

When I source the above script, I get the "E1075: Namespace not
supported: s:F1()"
error message.

I am able to define a script-local function using the "s:' prefix at the script
level though.

- Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7k_SgoX1c1_nkK-O_At_ToUO%3D7pfBRWqT%2BQYP4bze%2BJ-A%40mail.gmail.com.

Raspunde prin e-mail lui