Re: [Fresco-devel] [Fwd: Fresco HelloWorld program example]

Neil Pilgrim <[email protected]> Mon, 14 Apr 2003 10:03:20 +0100
Newsgroups gmane.comp.video.fresco.devel
Message-ID <[email protected]>
Stefan Seefeld wrote:
[fresco tutorial]
> Well, actually, it doesn't compile for me because of two
> bugs: It should include <Fresco/ToolKit.hh>, and the
> ClientContextImpl constructor takes actually a 'const char *',
> not a unistring. I'll fix the tutorial for the first issue,
> the second, I guess, should be fixed in the source, i.e.
> ClientContextImpl should indeed be constructed with a
> unistring. Neil, what do you think ?

Well the ClientContextImpl stores a Unistring internally, so making it a
Unistring in the constructor allows either a 'char const *' or Unistring
to be passed, which makes sense to me. It also allows any of the other
types to be passed in (ie. Char[], UTF8_string, UTF32_string) to use the
same constructor. That causes a possible extra copy, but I can live with
that ;)

Tobias: should there be a copy-constructor for a UTF16_string? (for
Babylon::String)

Regards,

-- 
Neil