Inline functions

Archive of the older Feature Request Forum Posts
Locked
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

Inline functions

Post by Lagoon »

It would be wonderful to have inline functions, adding an inline keywork just like in c++

Code: Select all

inline function my_function_name()
// whatever
endfunction
I'm often forced to rewrite code when performance is critical, I'd really like to avoid this with inline function
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

Post by Lagoon »

Why no reply for this? Is it useless for everyone but me?
If the devs think it's too complex to code for the benefit it could give, I can understand, but please let me know your opinion ^_^
Marilla

Post by Marilla »

I like the idea, myself, if it's feasible and would give benefits in the scripting engine thingy. My bet, though, is that it would be mis-used to high heaven. I can picture script with every single function inlined, now!
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

Extremely difficult for us to implement right now and theres more important things like the lost gotten items on world save, what happens to secure trade items during a save, etc.

Were gonna try to push release candidates for 097 pretty soon.
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

Post by Lagoon »

I agree with your point, this is a plus which can wait, I hope you'll take it into cosideration when basic features are stable ^_^
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Definately something to wait on. I know Austin and myself have been wanting to begin RC soon, but there are a few critical issues to resolve in this core before we can do such. Which means putting off requests and so on till they can be handled and done with.
Locked