[Tilesathome] Request (err, suggestion) for more t at h client simplification
spaetz
osm at sspaeth.de
Thu Aug 7 13:13:20 BST 2008
On Thu, Aug 07, 2008 at 12:56:45PM +0200, Stefan Neufeind wrote:
> > sub compressAndUpload
> > {
> > my $error=0;
> > $error=compress(1) + 2 * upload(1) + 4 * compress(2) + 8 * upload(2);
> > return $error;
> > }
> > ....
>
> Well, looks like they add up boolean values and form a bit-mask for
> errors imho.
I can see that. But this is the main workhorse that zips the tilesets and uploads them to the server. Haven't you noticed? :-P
A bit too much magic for my taste. Anyway, that's just an example for parts I had difficulties with.
spaetz
More information about the Tilesathome
mailing list