-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from DoclerLabs/develop
prepare 0.16.0
- Loading branch information
Showing
90 changed files
with
1,277 additions
and
1,929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
hexCore.iml | ||
bin | ||
.haxelib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
-main MainCoreTest | ||
-cp src | ||
-lib hexcore | ||
-lib hexunit | ||
-lib hexlog | ||
|
||
-cp test | ||
-cp hexunit/src | ||
|
||
-D debug=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package hex.control; | ||
|
||
/** | ||
* ... | ||
* @author back2dos | ||
*/ | ||
abstract Callback<T>( T->Void ) from ( T->Void ) | ||
{ | ||
inline function new(f) | ||
this = f; | ||
|
||
@:from static function fromNiladic<A>( f : Void->Void ) : Callback<A> //inlining this seems to cause recursive implicit casts | ||
return new Callback( function ( r ) f() ); | ||
|
||
public inline function invoke( data : T ) : Void //TODO: consider swallowing null here | ||
( this )( data ); | ||
|
||
@:to inline function toFunction() | ||
return this; | ||
|
||
@:from static function fromMany<A>( callbacks : Array<Callback<A>> ) : Callback<A> | ||
return | ||
function ( v : A ) | ||
for ( callback in callbacks ) | ||
callback.invoke( v ); | ||
} |
Oops, something went wrong.