summaryrefslogtreecommitdiff
path: root/src/typval.c
Commit message (Collapse)AuthorAgeFilesLines
...
* patch 8.2.3436: check for optional bool type has confusing return typev8.2.3436Bram Moolenaar2021-09-131-3/+5
| | | | | Problem: Check for optional bool type has confusing return type. Solution: Explicitly return OK.
* patch 8.2.3347: check for legacy script is incompletev8.2.3347Bram Moolenaar2021-08-151-1/+1
| | | | | | Problem: Check for legacy script is incomplete. (Naohiro Ono) Solution: Also check the :legacy modifier. Use for string concatenation with "." and others (issue #8756)
* patch 8.2.3329: v_lock not set when getting value of environment variablev8.2.3329Bram Moolenaar2021-08-111-0/+1
| | | | | Problem: v_lock not set when getting value of environment variable. Solution: Set v_lock to zero.
* patch 8.2.3318: Vim9: cannot ignore quotes in number at the command linev8.2.3318Bram Moolenaar2021-08-081-1/+1
| | | | | Problem: Vim9: cannot ignore quotes in number at the command line. Solution: Use in_vim9script() so that after ":vim9" quotes are ignored.
* patch 8.2.3315: cannot use single quote in a float number for readabilityv8.2.3315Bram Moolenaar2021-08-081-3/+17
| | | | | Problem: Cannot use single quote in a float number for readability. Solution: Support single quotes like in numbers. (closes #8713)
* patch 8.2.3258: error messages have the wrong textv8.2.3258Bram Moolenaar2021-07-311-3/+3
| | | | | Problem: Error messages have the wrong text. Solution: Adjust the error message.
* patch 8.2.3232: system() does not work without a second argumentv8.2.3232Yegappan Lakshmanan2021-07-281-0/+11
| | | | | | Problem: system() does not work without a second argument. Solution: Do not require a second argument. (Yegappan Lakshmanan, closes #8651, closes #8650)
* patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan2021-07-271-10/+96
| | | | | | Problem: Vim9: runtime and compile time type checks are not the same. Solution: Add more runtime type checks for builtin functions. (Yegappan Lakshmanan, closes #8646)
* patch 8.2.3221: Vim9: argument types are not checked at compile timev8.2.3221Yegappan Lakshmanan2021-07-251-0/+27
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632)
* patch 8.2.3211: Vim9: argument types are not checked at compile timev8.2.3211Yegappan Lakshmanan2021-07-241-0/+11
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. Fix type check for matchaddpos(). (Yegappan Lakshmanan, closes #8619)
* patch 8.2.3206: Vim9: argument types are not checked at compile timev8.2.3206Yegappan Lakshmanan2021-07-231-23/+41
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611)
* patch 8.2.3194: Vim9: argument types are not checked at compile timev8.2.3194Yegappan Lakshmanan2021-07-211-33/+55
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, simplify some. (Yegappan Lakshmanan, closes #8598)
* patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan2021-07-201-0/+203
| | | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, also at runtime. (Yegappan Lakshmanan, closes #8587)
* patch 8.2.3176: Vim9: no type error for comparing number with stringv8.2.3176Bram Moolenaar2021-07-181-2/+14
| | | | | Problem: Vim9: no type error for comparing number with string. Solution: Add a runtime type check. (closes #8571)
* patch 8.2.3173: Vim9: argument types are not checked at compile timev8.2.3173Yegappan Lakshmanan2021-07-171-3/+40
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes #8581)
* patch 8.2.3162: Vim9: argument types are not checked at compile timev8.2.3162Yegappan Lakshmanan2021-07-151-0/+17
| | | | | Problem: Vim9: argument types are not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560)
* patch 8.2.3135: Vim9: builtin function arguments not checked at compile timev8.2.3135Yegappan Lakshmanan2021-07-101-4/+21
| | | | | Problem: Vim9: builtin function arguments not checked at compile time. Solution: Add more type checks. (Yegappan Lakshmanan, closes #8539)
* patch 8.2.3069: error messages are spread outv8.2.3069Bram Moolenaar2021-06-271-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move some error messages to errors.h. Use clearer names.
* patch 8.2.3007: Vim9: test for void value failsv8.2.3007Bram Moolenaar2021-06-151-1/+3
| | | | | Problem: Vim9: test for void value fails. Solution: Adjust expected error. Do not make a copy of void.
* patch 8.2.3005: Vim9: using a void value does not give a proper error messagev8.2.3005Bram Moolenaar2021-06-151-5/+11
| | | | | Problem: Vim9: using a void value does not give a proper error message. Solution: Give a clear error message. (clodes #8387)
* patch 8.2.2948: substitute() accepts a number but not a float expressionv8.2.2948Bram Moolenaar2021-06-061-2/+7
| | | | | Problem: Substitute() accepts a number but not a float expression. Solution: Also accept a float. (closes #8331)
* patch 8.2.2944: Vim9: no error when using job or channel as a stringv8.2.2944Bram Moolenaar2021-06-051-31/+9
| | | | | Problem: Vim9: no error when using job or channel as a string. Solution: Be more strict about conversion to string. (closes #8312)
* patch 8.2.2846: Vim9: "echo Func()" does not give an error for using voidv8.2.2846Bram Moolenaar2021-05-091-1/+2
| | | | | | Problem: Vim9: "echo Func()" does not give an error for a function without a return value. Solution: Give an error. Be more specific about why a value is invalid.
* patch 8.2.2844: Vim9: memory leak when using searchpair()v8.2.2844Bram Moolenaar2021-05-071-1/+4
| | | | | Problem: Vim9: memory leak when using searchpair(). Solution: Free the v_instr field.
* patch 8.2.2842: Vim9: skip argument to searchpair() is not compiledv8.2.2842Bram Moolenaar2021-05-071-0/+11
| | | | | Problem: Vim9: skip argument to searchpair() is not compiled. Solution: Add VAR_INSTR.
* patch 8.2.2752v8.2.2752Bram Moolenaar2021-04-101-4/+1
|
* patch 8.2.2671: error for line number in legacy scriptv8.2.2671Bram Moolenaar2021-03-281-1/+2
| | | | | Problem: Error for line number in legacy script. Solution: Check for number type.
* patch 8.2.2670: Vim9: error for append(0, text)v8.2.2670Bram Moolenaar2021-03-281-1/+1
| | | | | Problem: Vim9: error for append(0, text). Solution: Check for negative number. (closes #8022)
* patch 8.2.2664: Vim9: not enough function arguments checked for stringv8.2.2664Bram Moolenaar2021-03-271-10/+10
| | | | | Problem: Vim9: not enough function arguments checked for string. Solution: Check in balloon functions. Refactor function arguments.
* patch 8.2.2646: Vim9: error for not using string doesn't mentionargumentv8.2.2646Bram Moolenaar2021-03-221-5/+11
| | | | | Problem: Vim9: error for not using string doesn't mention argument. Solution: Add argument number.
* patch 8.2.2497: no error when using more than one character for a registerv8.2.2497Bram Moolenaar2021-02-101-1/+3
| | | | | | Problem: No error when using more than one character for a register name. Solution: In Vim9 script check for a single character string. (closes #7814) Fix that VAR_BOOL and VAR_SPECIAL are not considered equal.
* patch 8.2.2435: setline() gives an error for some typesv8.2.2435Bram Moolenaar2021-01-311-5/+18
| | | | | Problem: setline() gives an error for some types. Solution: Allow any type, convert each item to a string.
* patch 8.2.2434: Vim9: no error when compiling str2nr() with a numberv8.2.2434Bram Moolenaar2021-01-301-0/+24
| | | | | Problem: Vim9: no error when compiling str2nr() with a number. Solution: Add argument type checks. (closes #7759)
* patch 8.2.2324: not easy to get mark en cursor posotion by character countv8.2.2324Bram Moolenaar2021-01-101-1/+1
| | | | | | Problem: Not easy to get mark en cursor posotion by character count. Solution: Add functions that use character index. (Yegappan Lakshmanan, closes #7648)
* patch 8.2.2320: Vim9: no error for comparing bool with stringv8.2.2320Bram Moolenaar2021-01-091-0/+24
| | | | | Problem: Vim9: no error for comparing bool with string. Solution: Check for wrong types when comparing. (closes #7639)
* patch 8.2.2319: "exptype_T" can be read as "expected type"v8.2.2319Bram Moolenaar2021-01-091-1/+1
| | | | | Problem: "exptype_T" can be read as "expected type". Solution: Rename to "exprtype_T", expression type.
* patch 8.2.2302: Vim9: using an option value may use uninitialized memoryv8.2.2302Bram Moolenaar2021-01-051-0/+1
| | | | | Problem: Vim9: using an option value may use uninitialized memory. Solution: Clear v_lock. (closes #7620)
* patch 8.2.2254: Vim9: bool option type is numberv8.2.2254Bram Moolenaar2020-12-311-9/+20
| | | | | | Problem: Vim9: bool option type is number. Solution: Have get_option_value() return a different value for bool and number options. (closes #7583)
* patch 8.2.2184: Vim9: no error when using "2" for a line numberv8.2.2184Bram Moolenaar2020-12-211-2/+2
| | | | | Problem: Vim9: no error when using "2" for a line number. Solution: Give an error message if the line number is invalid. (closes #7492)
* patch 8.2.2133: Vim9: checking for a non-empty string is too strictv8.2.2133Bram Moolenaar2020-12-121-4/+18
| | | | | Problem: Vim9: checking for a non-empty string is too strict. Solution: Check for any string. (closes #7447)
* patch 8.2.2117: some functions use any value as a stringv8.2.2117Bram Moolenaar2020-12-091-0/+16
| | | | | Problem: Some functions use any value as a string. Solution: Check that the value is a non-empty string.
* patch 8.2.2012: Vim9: confusing error message when using bool wronglyv8.2.2012Bram Moolenaar2020-11-181-1/+4
| | | | | Problem: Vim9: confusing error message when using bool wrongly. Solution: Mention "Bool" instead of "Special". (closes #7323)
* patch 8.2.1977: Vim9: error for using a string in a condition is confusingv8.2.1977Bram Moolenaar2020-11-121-1/+1
| | | | | | Problem: Vim9: error for using a string in a condition is confusing. Solution: Give a more specific error. Also adjust the compile time type checking for || and &&.
* patch 8.2.1751: using 2 where bool is expected may throw an errorv8.2.1751Bram Moolenaar2020-09-261-1/+1
| | | | | Problem: Using 2 where bool is expected may throw an error. Solution: Make this backwards compatible.
* patch 8.2.1698: cannot lock a variable in legacy Vim script like in Vim9v8.2.1698Bram Moolenaar2020-09-161-2/+2
| | | | | Problem: Cannot lock a variable in legacy Vim script like in Vim9. Solution: Make ":lockvar 0" work.
* patch 8.2.1571: Vim9: count() third argument cannot be "true"v8.2.1571Bram Moolenaar2020-09-021-1/+0
| | | | | Problem: Vim9: count() third argument cannot be "true". Solution: use tv_get_bool_chk(). (closes #6818)
* patch 8.2.1562: Vim9: error when using "%" where a buffer is expectedv8.2.1562Bram Moolenaar2020-09-011-0/+19
| | | | | Problem: Vim9: error when using "%" where a buffer is expected. Solution: Add tv_get_buf_from_arg(). (closes #6814)
* patch 8.2.1506: Vim9: no error when using a number other than 0 or 1 as boolv8.2.1506Bram Moolenaar2020-08-221-2/+7
| | | | | Problem: Vim9: no error when using a number other than 0 or 1 as bool. Solution: Check the number is 0 or 1.
* patch 8.2.1480: Vim9: skip expression in search() gives errorv8.2.1480Bram Moolenaar2020-08-181-0/+11
| | | | | Problem: Vim9: skip expression in search() gives error. Solution: use tv_get_bool() eval_expr_to_bool(). (closes #6729)
* patch 8.2.1475: Vim9: can't use v:true for option flagsv8.2.1475Bram Moolenaar2020-08-171-19/+36
| | | | | Problem: Vim9: can't use v:true for option flags. Solution: Add tv_get_bool_chk(). (closes #6725)