ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tcl-core
tcl-core
Re: [TCLCORE] problem with image create photo
by Alexandre Ferrieux other posts by this author
Apr 27 2008 3:59PM messages near this date
Re: [TCLCORE] problem with image create photo | Re: [TCLCORE] problem with image create photo
On 4/27/08, Donal K. Fellows <donal.k.fellows@[...].uk>  wrote:
>  Alexandre Ferrieux wrote:
>  > Do all these formats have a 'magic number', or another unambiguous
>  > criterion to decide their nature ?
>  >
> 
>  The photo image loader system is coded with exactly that assumption. It
>  seems to work in practice. :-)

Yes, but if suddenly you allow for transparent handling of the base64
version of all existing formats, you suddenly double that crowd,  and
moreover with printable characters all over the place, while some
magic numbers also have a tendency to be printable. Recipe for
hard-to-debug disaster, for little incentive nowadays.

Again, I see the benefit of allowing base64-encoded images of all
kinds. Simply, I really can't see the use of auto-detecting them.
Today the programmer knows what material he is handling, and in the
rare case where he doesn't, it is trivial to write a try-all iterator
in Tcl.

-Alex

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
lluisgomez
Donal K. Fellows
Donal K. Fellows
Alexandre Ferrieux
Donal K. Fellows
Jeff Hobbs
Alexandre Ferrieux
Donal K. Fellows
Alexandre Ferrieux
Michael Kirkham

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved