|
Pages: [1]
|
 |
|
Author
|
Topic: Keeping cross platform with load/library (Read 156 times)
|
|
btiffin
|
Now that load/library is freed we will need to be extra diligent when we share code that uses routine! This snippet is from rebol.org %printf.r by Jaime Vargas and Ladislav Mecir. Copyright 2005, Why Wire Inc. under a BSD license. libc: load/library switch system/version/4 [ 2 [%libc.dylib] ; OSX 3 [%msvcrt.dll] ; Windows 4 [%libc.so] ; Linux 7 [%libc.so] ; FreeBSD 8 [%libc.so] ; NetBSD 9 [%libc.so] ; OpenBSD 10 [%libc.so] ; Solaris ]
I'd like to see it become a standard idiom for rebols that are using library calls. And I'll add, that in my humble opinion; To be a true rebol means avoiding platform specific "enhancements" when possible. This will usually mean a little extra work but more importantly, avoiding flies to the honey traps. Cheers
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |