• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[!REBOL3] General discussion about REBOL 3

MarcS
10-Mar-2013
[1529]
https://github.com/rebol/r3/blob/master/src/core/n-io.c#L499
Andreas
10-Mar-2013
[1530]
Should probably rather return the URL, that would be more useful 
:)
BrianH
10-Mar-2013
[1531]
That treatment of a none argument makes sense, Andreas. However, 
the function should return unset, like PRINT.
MarcS
10-Mar-2013
[1532x2]
If we can agree on something, I'll push that the change.
BrianH: So, R_UNSET?
Andreas
10-Mar-2013
[1534]
That's independent of the OSX open fix in any case.
BrianH
10-Mar-2013
[1535]
Sure. And in the has-a-url case too.
Andreas
10-Mar-2013
[1536]
So better just file a CC issue for the `browse none` crash, and we 
can discuss the desired design in there.
BrianH
10-Mar-2013
[1537]
Yeah, maybe two pulls.
MarcS
10-Mar-2013
[1538]
Okay, I'll pop this in a separate branch.
BrianH
10-Mar-2013
[1539]
Marc, did you file a ticket for this? If not, I can repurpose #1921 
for this.
Andreas
10-Mar-2013
[1540]
Win32 browse opens an empty browser for NONE.
MarcS
10-Mar-2013
[1541]
I didn't, no.
Andreas
10-Mar-2013
[1542]
Please don't repurpose 1921 :)
BrianH
10-Mar-2013
[1543]
Let 1921 stay dismissed, OK.
Andreas
10-Mar-2013
[1544x2]
One ticket for missing BROWSE on OSX, another one for the browse 
none crash.
https://github.com/rebol/r3/blob/master/src/os/win32/host-lib.c#L640
BrianH
10-Mar-2013
[1546]
Will do. And I'm still revamping the REWORD ticket example code.
Andreas
10-Mar-2013
[1547]
Well, I'll briefly write up the crash ticket.
BrianH
10-Mar-2013
[1548]
If you could write both I'd appreciate it. I have limited R3 time 
today, I have an R2 task I have to work on.
Andreas
10-Mar-2013
[1549]
Ok.
MarcS
10-Mar-2013
[1550x2]
https://github.com/0branch/r3/commit/95e3481ffba473f9191b918dd2eb890e764ff32a
If that looks good, I can submit pull requests for both issues once 
Andreas has written up the issues?
Andreas
10-Mar-2013
[1552x2]
I'm not sure if the second is the desired change :)
MarcS: one open questions is if we should use the __APPLE__ define 
(is that defined for iOS as well?) or rather use the R3-specific 
platform defines.
MarcS
10-Mar-2013
[1554]
Oh, did I misunderstand?
Andreas
10-Mar-2013
[1555]
Win32 handles a none URL gracefully, just opening an "empty" browser.
MarcS
10-Mar-2013
[1556]
Oh, okay. But this meets Brian's suggestion?
Andreas
10-Mar-2013
[1557]
Yes.
BrianH
10-Mar-2013
[1558]
A function should only return none if returning another value is 
a valid option. If it never returns a value, it shouyld return unset.
MarcS
10-Mar-2013
[1559x2]
Incidentally, there's no simple way to browse to none using the current 
technique (as far as I can see).
BrianH: oh okay, so this is a unit type / void.
BrianH
10-Mar-2013
[1561]
Yeah.
MarcS
10-Mar-2013
[1562x3]
e.g., on MacOSX, open uses the format of its argument to determine 
the appropriate handler. I'd imagine xdg-open does the same.
And i doubt browsing to file:/// is the desired default.
(Replace file:/// with anything else, I think the point stands.)
BrianH
10-Mar-2013
[1565]
Or desired to allow at all, right.
Andreas
10-Mar-2013
[1566]
What does `open http://` do on OSX?
MarcS
10-Mar-2013
[1567x2]
Incidentally, what's R3 bazaar? I was a little confused as to whether 
that was a repo for experimental developments or something else.
Andreas: oh hey, about:blank
Andreas
10-Mar-2013
[1569]
(Same with xdg-open.)
BrianH
10-Mar-2013
[1570]
It's MaxV's thing.
MarcS
10-Mar-2013
[1571x3]
But xdg-open takes me to http:///
(Invalid adress.)
Brian: but pull requests should still go to the main repo?
Andreas
10-Mar-2013
[1574]
Yes.
MarcS
10-Mar-2013
[1575x2]
address*
(Sorry for the 20 questions.)
Andreas
10-Mar-2013
[1577]
Glad if we can help :)
BrianH
10-Mar-2013
[1578]
browse none doesn't work right on Win32 unless IE is your default 
browser. It behaves differently wrong for every other default browser.