i think a inline function would be nice.
it would improve speed in some cases and improve readability
there just some times when a procedure call would be nice but the code inside is so small its slower than having inlined.
my raytracer uses alot of this inlining to improve speed becasue of the vector math procedures like DotProducts are tiny but are hardto read and understand in the soup of code when inlined.
so maybe a special procedure keyword such as
Code: Select all
ProcedureInline.f DotProduct(ax.f,ay.f,az.f,bx.f,by.f,bz.f)
ProcedureReturn ax * bx + ay * by + az * bz
EndProcedure