[swift-users] Using Task on Linux

2017-01-08 Thread Mr Bee via swift-users
Hi, I'm writing a simple editor on Linux for Swift language. I use Task (was NSTask) to run the Swift REPL. Unfortunately, Task failed to execute the Swift REPL for no obvious reasons. The Swift compiler and REPL are installed just fine and able to execute any Swift codes. However, my exact

[swift-users] Bls: Bls: GCD and Process

2017-01-08 Thread Mr Bee via swift-users
> [1] This doesn’t actually park the thread (at least on Darwin platforms) but >instead does the rather neat trick of terminating the main thread while >leaving the process alive (-: How to do such a trick? Do you have any refferences that discuss further about this? I'm still a newbie with

[swift-users] Importing struct from C API (FUSE) with member init

2017-01-08 Thread Dennis Schafroth via swift-users
Is there any solutions to importing structs from C API where there is a member init. The fuse_operations is a struct with callbacks functions and one is called init struct fuse_operations { void *(*init) (struct fuse_conn_info *conn); } This seems to collide with the Swift init