Dima Granetchi
unread,Dec 24, 2012, 8:22:06 AM12/24/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to haxe...@googlegroups.com
Hi.
I have one question about inlining in js.
Many times I saw what methods aren't inlined in js generated code (very simple methods, without local vars, one line methods). Today I added for inline method meta data @:extern and yahoo, method inlined now!
This is my method
@:extern private inline function ensureWrite (lengthToEnsure:Int):Void {
if (this.length < lengthToEnsure) this.length = lengthToEnsure;
}
without @:extern inline doesn't work. Why is this happening?