Function Reference: Difference between revisions

Jump to navigation Jump to search
→‎Bugs: value returning functions
imported>Offyoufuсk
No edit summary
imported>DayDreamer
(→‎Bugs: value returning functions)
Line 147: Line 147:


: auiCount, for instance, is an unsigned integer argument while asFileName is a string argument. Note that 'p' and 'k', for Papyrus' purposes, are interchangeable and that Papyrus does not actually have pointers.
: auiCount, for instance, is an unsigned integer argument while asFileName is a string argument. Note that 'p' and 'k', for Papyrus' purposes, are interchangeable and that Papyrus does not actually have pointers.
=== Bugs ===
* In value returning functions, the compiler does not properly check all code paths for returns with values. If the function exits without providing a return value, the result is indeterminate and causes unexplained failures throughout related scripts (possibly due to stack corruption).


[[Category:Scripting]]
[[Category:Scripting]]
Anonymous user

Navigation menu