Any

Any(Dynamic)

no package

Available on all platforms

Any is a type that is compatible with any other in both ways-

This means that a value of any type can be assigned to Any, and vice-versa, a value of Any type can be assigned to any other type-

It's a more type-safe alternative to Dynamic, because it doesn't support field access or operators and it's bound to monomorphs. So, to work with the actual value, it needs to be explicitly promoted to another type.

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/Any.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部