Rebol Talk Forum  |  REBOL Discussions  |  REBOL Chat  |  Topic: Keeping cross platform with load/library
Pages: [1] Print
Author Topic: Keeping cross platform with load/library  (Read 46 times)
btiffin
Jr. Member
**
Offline Offline

Posts: 51


View Profile
Keeping cross platform with load/library
« on: May 06, 2008, 08:27:21 AM »

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.
Code:
    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] Print 
Rebol Talk Forum  |  REBOL Discussions  |  REBOL Chat  |  Topic: Keeping cross platform with load/library
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 18, 2008, 07:34:38 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2167 Posts in 560 Topics by 1220 Members
Latest Member: MattressFurniture

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc