Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: CORE experimental 2.4.39

From: holger:rebol at: 23-Nov-2000 6:41

On Thu, Nov 23, 2000 at 07:18:00AM +0100, Petr Krenzelok wrote:
> > Added GET-MODES and SET-MODES for file and network ports. (These > > functions are NOT documented at this time and are subject to change in > > later versions. Use at own risk.) > > > > Does it mean they could be removed later? Or do you mean just change of > their behavior?
The API might still change. The functionality will remain though.
> What are these functions good for, please? :-) I tried > 'get-on upon my mailbox port, but it does seem to want different kind of > parameter .... I was not succesfull even with file port:
You can change port modes (binary vs string etc.), platform-specific file properties such as permission bits or dates, and for sockets things like type-of-service, lists of multicast groups etc. -- and a lot more. More info on calling conventions and supported modes once we have made a final decision regarding the API.
> > Added fork selection to the /custom block for OPEN, READ etc. > > And - what does this one mean? :-)
open/custom %abc [fork "data"] opens the data fork of a file, open/custom %abc [fork "resource"] opens the resource fork. At the moment this is just a "Mac thing".
> > Added NOW/precise refinement. > > > > nice ...
Accuracy depends on the platform: Mac: one second (unfortunately), Windows: one millisecond, all other platforms: one microsecond.
> > Added asynchronous 'wait-able DNS for Unix and Windows: > > open dns:///async, then insert/wait/copy. > > is the number of slashes correct?
Yes. The first two slashes are optionally used to separate the scheme from the hostname for "normal" DNS requests (e.g. dns://hostname ), scheme-specific things such as DNS options follow the third slash. Use for example a: open/no-wait dns:///async insert a "www.rebol.com" wait a copy a close a The same port can be used for multiple consecutive DNS lookups. Just alternate between insert and copy. You cannot queue multiple requests in the same port though.
> There seem to be always something to improve :-) Now when above changes > will find it's way into REBOL/View? :-)
With the next release, probably. -- Holger Kruse [holger--rebol--com]