Login  Register

Re: Zinc: urls without scheme

Posted by Stéphane Ducasse on Aug 06, 2011; 9:35am
URL: https://forum.world.st/Zinc-urls-without-scheme-tp3720657p3723089.html

Igor use gofer.
It is good to minimise the number of libraries to maintain.

Stef

On Aug 5, 2011, at 11:07 AM, Igor Stasenko wrote:

> On 5 August 2011 10:52, Sven Van Caekenberghe <[hidden email]> wrote:
>> Hi Igor,
>>
>> On 05 Aug 2011, at 10:08, Igor Stasenko wrote:
>>
>>> 'www.squeaksource.com' asZnUrl host -> nil
>>
>> That seems like a bug to me, I'll look into it. Thanks for reporting this.
>>
>>> 'http://www.squeaksource.com' asZnUrl host ->  'www.squeaksource.com'
>>>
>>> i wonder if url should have notion of default scheme and if sheme not
>>> specified, use a default one i.e. 'http:' ?
>>
>> Hmm, that is more or less by design, I'll think about it.
>>
>> A default can also be explicit in the message like #portOrDefault that way the object keeps representing what was parsed, but the user specifies what kind of default behavior (s)he wants.
>>
>
> Well, since zinc is mostly for http/web.. i would expect that it using
> appropriate defaults for urls it use.
>
> The problem is in:
>
> ScriptLoader new installingInstaller.
>
> without default scheme this thing is broken, since it using url
> without scheme. :(
>
> Of course i could use gofer for loading it.. but i found this is most
> easy way to load installer.
>
> --
> Best regards,
> Igor Stasenko AKA sig.
>