History
|
Log In
H
OME
B
ROWSE PROJECT
F
IND ISSUES
Q
UICK SEARCH:
Learn more about
Quick Search
Issue Details
(
XML
|
Word
|
Printable
)
Key:
BOO-563
Type:
Improvement
Status:
Closed
Resolution:
Fixed
Priority:
Major
Assignee:
Rodrigo B. de Oliveira
Reporter:
Rodrigo B. de Oliveira
Votes:
0
Watchers:
0
Operations
If you were
logged in
you would be able to see more operations.
Boo
type inference does not detect char type for iteration over strings
Created:
28/Oct/05 04:14 PM
Updated:
21/Nov/05 02:03 PM
Component/s:
Compiler
Affects Version/s:
0.7
Fix Version/s:
0.7.5
Time Tracking:
Not Specified
All
Comments
Work Log
Change History
Sort Order:
[
Permlink
|
« Hide
]
Cameron Kenneth Knight
-
28/Oct/05 05:21 PM
>>> def thing(c as char):
... print 'char'
...
>>> def thing(o as object):
... print 'object'
...
>>> for c in "asdf":
... thing(c)
...
object
object
object
object
[
Show »
]
Cameron Kenneth Knight
-
28/Oct/05 05:21 PM
>>> def thing(c as char): ... print 'char' ... >>> def thing(o as object): ... print 'object' ... >>> for c in "asdf": ... thing(c) ... object object object object
... print 'char'
...
>>> def thing(o as object):
... print 'object'
...
>>> for c in "asdf":
... thing(c)
...
object
object
object
object