项目作者: Shambles-Dev

项目描述 :
Type Checking for AutoHotkey
高级语言: AutoHotkey
项目地址: git://github.com/Shambles-Dev/AutoHotkey-Type_Checking.git
创建时间: 2018-12-11T16:06:28Z
项目社区:https://github.com/Shambles-Dev/AutoHotkey-Type_Checking

开源协议:GNU Lesser General Public License v3.0

下载


Type Checking

This is a backport of most of AutoHotkey v2’s type checking features to v1. They are useful for validation and dispatching.

Design contains the reasons for the design decisions.

Installation

The files in src must be placed in a library directory.

Usage

Directly calling a function will cause its library to be auto-included. If the function is only called dynamically or indirectly, its library must be explicitly included.

IsInteger(Value)

IsFloat(Value)

IsNumber(Value)

IsString(Value)

Type(Value)

IsInstance(Value, Class) is v2’s is operator as a function.

HasProp(Value, Name)

HasMethod(Value, Name)

Be aware that these functions do not recognize implicitly-defined members, except for base, of primitives or user-defined types.