Laxaro

View the latest news and breaking news today

inessential: frontier diary #7: pretty much everything throws

inessential: frontier diary #7: pretty much everything throws Article News With Simple Text and Web Resource Link. For View Full Content Click on Source Link on Then Bottom Of News.



inessential: frontier diary #7: pretty much everything throws

a script can throw an error, either intentionally (via the scripterror verb) or by doing something, such as referencing an undefined object, that generates an error.origfrontier was written in c, which has no error-throwing mechanism, and so it worked like this: most runtime functions returned a boolean (for success or failure), and the return value was passed in by reference. if there was an error, the function would set a global error variable and return false. the caller would then have to check that global to see if there was an error, and then do the right thing.this was not unreasonable, given the language and the times (early ’90s) and also given the need to be very careful about unw...