On Feb 27, 2008, at 8:45 AM, Paul McNett wrote:

> Eval'ing them would make them strings when they are strings, ints when
> they are ints:
>
> eval("'201-555-1234'") -> "201-555-1234"
> eval("201-555-1234") -> -1588
> eval("23.5") -> 23.5
> eval("'33'") -> "33"
> eval("None") -> None
> eval("'None'") -> "None"


        The issue, though, is that this would force people to enclose every  
single string (which will be the majority of entries, at least in my  
experience, in quotes. IMO, it is exceedingly poor design to require  
extra stuff for the default case.

        This may be a specific solution for the Class Designer use cases, but  
in every situation I can think of, the options entered in the dialog  
will all be the same type. Adding a selector to specify the type that  
the entries should be might be a workable solution.

-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to