comparison runtime/doc/builtin.txt @ 31712:2d68375d5ddf v9.0.1188

patch 9.0.1188: return value of type() for class and object unclear Commit: https://github.com/vim/vim/commit/c0c2c262650103c4a21b64c3246388a350688616 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 12 21:08:53 2023 +0000 patch 9.0.1188: return value of type() for class and object unclear Problem: Return value of type() for class and object unclear. Solution: Add v:t_object and v:t_class.
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 Jan 2023 22:15:04 +0100
parents 7d68a90cbf5c
children f348559ce426
comparison
equal deleted inserted replaced
31711:860f8db33d1b 31712:2d68375d5ddf
9945 Boolean: 6 |v:t_bool| (v:false and v:true) 9945 Boolean: 6 |v:t_bool| (v:false and v:true)
9946 None: 7 |v:t_none| (v:null and v:none) 9946 None: 7 |v:t_none| (v:null and v:none)
9947 Job: 8 |v:t_job| 9947 Job: 8 |v:t_job|
9948 Channel: 9 |v:t_channel| 9948 Channel: 9 |v:t_channel|
9949 Blob: 10 |v:t_blob| 9949 Blob: 10 |v:t_blob|
9950 Class 12 |v:t_class|
9951 Object 13 |v:t_object|
9950 For backward compatibility, this method can be used: > 9952 For backward compatibility, this method can be used: >
9951 :if type(myvar) == type(0) 9953 :if type(myvar) == type(0)
9952 :if type(myvar) == type("") 9954 :if type(myvar) == type("")
9953 :if type(myvar) == type(function("tr")) 9955 :if type(myvar) == type(function("tr"))
9954 :if type(myvar) == type([]) 9956 :if type(myvar) == type([])