GetReplacement as Clearscope

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

GetReplacement as Clearscope

Postby Cicero Sellermedging » Wed Feb 12, 2020 11:10 am

As part of a forthcoming PR, I was hoping to modify CountInv, which is clearscope, to be able to call GetReplacement. However, this naturally produces the error, "Can't call play function GetReplacement from data context".

Can GetReplacement be made clearscope as well? As it should only return information, one might argue that it would be safe to call in this context. But, as it is a native static function, I also seem to have the impression that scope becomes a much more complicated matter.
Cicero Sellermedging

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests