2014-05-31 W.Y.
本文译自 Dmitry A. Soshnikov 的文章 ECMA-262-3 in detail. Chapter 2. Variable object. 参考了一些译文,作为自己学习 ECMAScript 的一点积累。 概要 创建应用程序的时,总免不了要声明变量和函数。然而,解析器(interpreter)是如何以及从哪里找到这些数据(变量,函数)的,当我们引用一个变量时,在解析器内部又发生了什么? 许多 ECMAScript 程序员都知道变量与执行上下文密切相关: ```js var a = 10; // 全局上下文中的变量 (function () { var b = 20; // 函数上下文中的局部变量 } 继续阅读 »
2016-07-18 ruki
xmake provides the grammar: $(varname) for supporting builtin variable. .e.g lua add_cxflags("-I$(buildir)") It will translate this variable to the real value when building. -I$(buildir) => -I./build We can also use these variables in the custom scripts. lua target("test") after_build(target) print 继续阅读 »
2015-02-08 KasperDeng
== Java == What The constant pool contains the constants associated with the class or interface defined by the file. Constants are stored in the constant pool. literal strings final variable values fully qualified names of classes and interfaces field names and descriptors method names and descriptors Symbolic refer 继续阅读 »
2015-03-06 码农明明桑
从java 5.0开始,为我们提供注解功能,通过注解可以限制代码的重载,过时,以及实现一些其他功能,这里,就来分析一下java的注解。 java 元注解 首先来看java元注解,分别是: more @Target @Retention @Documented @Inherited 这些注解和他们所修饰的类在java.lang.annotation包中,代码都很简单,可以去查看一下。 @Target 描述注解的使用范围,取值: ElementType.CONSTRUCTOR:描述构造器 ElementType.FIELD:描述成员变量 ElementType.VARIABLE: 描述局部 继续阅读 »