RobvanLopik
05/30/2023, 11:14 AMimport as
and is explained in the docs. I can't seem to find its use in anObject as aClass
. And it is not the simplest word to search for. Am I missing something?kasperl
05/30/2023, 12:09 PMimport net.wifi as mywifi
to make the wifi.open
available as mywifi.open
. The default prefix is the last segment of the imported path (unless the path starts with .
).kasperl
05/30/2023, 12:10 PMRobvanLopik
05/30/2023, 12:44 PMRobvanLopik
05/30/2023, 12:46 PMreturn (client_ as RandomServiceClient).roll_die handle_
kasperl
05/30/2023, 12:51 PMkasperl
05/30/2023, 12:53 PMas
is similar to is
, but it casts and generates a runtime error if the given object does not implement the given interface.kasperl
05/30/2023, 12:54 PMkasperl
05/30/2023, 12:54 PMRobvanLopik
05/30/2023, 1:04 PM