lua-users home
lua-l archive

Re: catching divide by zero

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Dec 15, 2013, at 3:52 PM, Andy Colson <andy@squeakycode.net> wrote:
> Is there magic I have to do so that's somehow valid? Why doesnt the lua command line crash?
print( 0/0 )
> nan
All perfectly good and valid. You might need to provide additional info about your particular circumstances, e.g. stack trace or something. 

AltStyle によって変換されたページ (->オリジナル) /