Hostname: Difference between revisions
no edit summary
(omit from Unlambda) |
No edit summary |
||
Line 225:
<lang objc>NSLog(@"%@", [[NSHost currentHost] name]);</lang>
(does not work on iPhone)
=={{header|Objeck}}==
<lang objeck>
use Net;
bundle Default {
class Hello {
function : Main(args : String[]) ~ Nil {
s := TCPSocket->HostName()->PrintLine();
}
}
}
</lang>
=={{header|OCaml}}==
|