Re: General Languages: Confusion on Callback Func Procedures
Thank you. I was unaware you could refer to functions like that.
URL: https://forum.audiogames.net/post/550090/#p550090
--
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin
Re: General Languages: Confusion on Callback Func Procedures
@3I don't entirely understand your question. In general callbacks should try to exit quickly, though, yes. But they're not otherwise different from the rest of your program in that regard, and in some non-game contexts
Re: General Languages: Confusion on Callback Func Procedures
So what do they do? I'm guessing each time through the loop, the callback runs, does its thing and when it returns, the loop continues. Would it then be bad practice for your callbacks to have loops in them? I would think so
Re: General Languages: Confusion on Callback Func Procedures
You don't pass it the string. You pass it the function itself. If I have:def f():
passThen f() calls the function, but f refers to the function. You can do things like f2 = f, for example. Or write functions that return
General Languages: Confusion on Callback Func Procedures
Hello, I was messing around with Lucia (via Python) and I came across the idea of Callback functions. now, I"ve seen these before, however the wording confused me a little.It tells me to pass a function to the class, however.