Latest Changes

Differences between version #15195 and #15196

34c34,44
< 
---
> ====== Nullability ======
> When not specified, an optional parameter will have the default value ''null'' but on static platforms (Flash, CPP, Java, C#) null can't be used as basic type. On those platforms the following function definition:
> <code haxe> static function foo( ?x:Int ) { </code>
> will be compiled as:
> <code haxe>static function foo( ?x:Null<Int>) {</code>
> Considering the following function:
> <code haxe>static function foo( x=1 ) {</code>
> it cannot be called with //foo(null);// unless you add a question mark :
> <code haxe>static function foo( ?x=1 ) {</code>
> or add type information:
> <code haxe>static function foo( x:Null<Int>=1 ) {</code>

	
Ver Date Entry Lg User Action
#19364 2013-05-19 18:01:37 manual/haxe3 en orwellophile View | Diff
#19363 2013-05-19 17:58:20 manual/haxe3 en orwellophile View | Diff
#19362 2013-05-19 16:16:17 api/haxe/timer en vegetablesalad View | Diff
#19361 2013-05-19 16:14:40 api/haxe/timer en vegetablesalad View | Diff
#19360 2013-05-13 17:42:34 doc/libraries en Confidant View | Diff
#19359 2013-05-13 05:01:15 manual/macros/advanced en jason View | Diff
#19358 2013-05-12 02:55:03 com/ide en MarcWeber View | Diff
#19357 2013-05-11 05:26:13 ref/conditionals jp shohei909 View | Diff
#19356 2013-05-10 09:29:15 manual/completion en jason View | Diff
#19355 2013-05-09 00:24:39 download/manual_install/leopard en JLM View | Diff
#19354 2013-05-09 00:10:46 download/manual_install/leopard/justinsbuildnotes en JLM View | Diff
#19353 2013-05-08 18:42:04 com/news en ncannasse View | Diff
#19352 2013-05-08 18:12:08 manual/haxe3 en ncannasse View | Diff
#19351 2013-05-08 18:09:11 manual/haxe3 en Simn View | Diff
#19350 2013-05-08 18:04:19 manual/haxe3 en ncannasse View | Diff
#19349 2013-05-08 15:57:29 doc/haxelib/haxelib2 en jason View | Diff
#19348 2013-05-08 15:57:29 doc/haxelib/haxelib2 en jason Changed title from Haxelib 2 to Haxelib 3
#19347 2013-05-08 15:21:08 manual/haxe3/features jp shohei909 View | Diff
#19346 2013-05-08 15:15:14 manual/haxe3/features en shohei909 View | Diff
#19345 2013-05-08 11:51:53 doc/haxelib/haxelib2 en back2dos View | Diff

Previous | Next