[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Native unicode support?
- From: Edgar Toernig <froese@...>
- Date: Wed, 26 Jun 2002 18:55:51 +0200
Chung Jiho wrote:
> 2. No "equal" tag method - I don't know if this is intended or not.
> But comparing two unicode user data needs tag method "equal" but
> there seems to be only "lt". builtin operator "==" for userdata seems
> to test identity (the same pointer) but not equivalence (comparing
> each characters, etc...) ...
> Is the only solution implementing some function like "ustrcmp"?
You could do it the same way Lua does it with strings: map all "equal"
strings to the same userdata.