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 >> activetcl
activetcl
Re: [Activetcl] split doing two different things
by Dossy Shiobara other posts by this author
Apr 8 2008 11:09AM messages near this date
view in the new Beta List Site
Re: [Activetcl] split doing two different things | Re: [Activetcl] split doing two different things
On 2008.04.08, Bahr, Michael <mbahr@[...].gov>  wrote:
>   
>  > What's the difference between these two arrays:
>  > 
>  >     ("a", "b", "c", "")  and  ("a", "b", "c")
>  > 
>  > Not being able to tell the difference programatically is a 
>  > bug in the programming language, not a feature.
>  
>  Ah but this ("a", "b", "c",) is not the same as ("a", "b", "c", "")

Are you suggesting the first is ("a", "b", "c", undef)?  Yes, indeed,
that _is_ different than ("a", "b", "c", "").  However, the original
data was:

    "a,b,c,"
    
How do you express "undef" in a stringified representation of data?
Hint: only if you pre-define a means to do so, defining a semantic rule
to the data _after_ it's been parsed.  Otherwise, it _is_ an element
that is just an empty string at the end.  Which is, exactly what Tcl
gives you.


-- 
Dossy Shiobara              | dossy@[...].com | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)
_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Gene Osteen
Jeff Hobbs
Flavio Salgueiro
Michael Bahr
Jeff Hobbs
Michael Bahr
Dossy Shiobara
Michael Bahr
Dossy Shiobara
Michael Bahr
Jeff Hobbs
Enrico Herzke
Michael Bahr
Jeff Dinsmore
Michael Bahr
Gene Osteen
Jeff Dinsmore
Enrico Herzke

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved