Re: ':' in type names ?



On 25 Aug 2001, Martin Baulig wrote:

> Hi,
> 
> is there any reason why GObject doesn't allow you to put a ':' into a type name ?

the type system currently just allowes [A-Za-z0-9+_-] for type names,
and assumes that '-' == '+' == '_', i.e. these characters are not going
to be used to make two type names distinct, so LBs can do s/[+-_]/_/ or
s/[+-_]/-/, depending on what is appropriate.
as to why not allowing other characters in type names, think of LBs
mapping type names into language symbols, e.g. C++:
class Martin:Baulig { } simply isn't going to work (Martin:Baulig
is _not_ one identifier, whereas Martin_Baulig is).

> 
> -- 
> Martin Baulig
> martin gnome org (private)
> baulig suse de (work)
> 

---
ciaoTJ





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]