Skip Menu |

This queue is for tickets about the X11-Protocol CPAN distribution.

Report information
The Basics
Id: 60159
Status: new
Priority: 0/
Queue: X11-Protocol

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: pre-defined atom constants
Date: Sat, 07 Aug 2010 10:05:50 +1000
To: bug-X11-Protocol [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
It'd be good if the predefined atoms like "PIXMAP" == 20 were available somewhere in X11::Protocol. I don't think there should be automatic conversion between names and numbers in the various methods acting on atoms, just a hash table or something where you can go from name to number. Perhaps there'd be scope to also hold per-server interned atom names in the $X object too. I had a spot of code where I wanted to intern an atom name, and thought if I saved the value in the $X then I could do it if not already done. I know the protocol object is meant to be fairly minimal, but maybe somewhere within it could be designated for applications to do that sort of thing.