[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New feature, type check?
From: |
Andreas Weber |
Subject: |
Re: New feature, type check? |
Date: |
Wed, 27 May 2020 00:16:30 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
Hi Nicklas,
Am 26.05.20 um 21:43 schrieb N:
> For functions I commonly make assumption about which field are available and
> sometimes about datatypes for parameters. It is possible to write check
> manually by using typeinfo(...) function and check which fields are available
> but maybe it would be good if it could be done automatically by interpreter.
> Guess the most straight forward would be to add possibility to specify C
> style datatype in front of variable and possibility to limit range or others
> is in some cases useful.
Do you want to extent the language?
Today you can use isfield to check struct or the many is* functions
(just type is and TAB twice)
-- Andy