doc/didyouknow

Differences between version #8348 and #8349

11a12,22
> ===== inlining, overriding and implementing =====
> You cannot inline overriding methods because they are resolved at runtime while inlining is done at compile time. You also cannot specify "inline" in interfaces. You can, however, implement an interface and declare the implementation as "inline":
> <code haxe>interface OpCode {
> 	public function execute(argument:Int):Int;
> }
> class ADC implements OpCode {
> 	public inline function execute(argument:Int):Int {
> 		return 0;
> 	}
> }</code>
> This might be an alternative to using common base classes in cases where performance is important.

	
Ver Date Lg User Action
#8349 2010-03-24 10:41:49 en Simn View | Diff
#8348 2010-03-24 10:25:17 en Simn View | Diff
#8346 2010-03-24 00:28:05 en Simn View | Diff
#8345 2010-03-24 00:28:04 en Simn Set title to Did you know?

Previous | Next