Last active
December 17, 2015 23:02
-
-
Save bobmagicii/ac15ef8dc44ba3880e69 to your computer and use it in GitHub Desktop.
papyrus the language of skyrim has nullable types.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function DoSomeShit(Actor Who) | |
{do some shit with the specified actor. } | |
If(Who == None) | |
Who = Game.GetPlayer() | |
EndIf | |
;; ... | |
Return | |
EndFunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
note this does not allow DoSomeShit() to be called without arguments. that is why PHP's =null trick is just a shitty hack. i demand you pass an argument that is an actor or explicitly pass me your null. prove you know wtf you are doing.