History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-612
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major 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

Cannot use assignments to byref parameters as expressions

Created: 18/Nov/05 01:35 PM   Updated: 18/Nov/05 02:04 PM
Component/s: Compiler
Affects Version/s: 0.7
Fix Version/s: 0.7.5

Time Tracking:
Not Specified

Testcase included: yes


 Description  « Hide
def foo(ref x as int):
return x = 4

x = 3
print foo



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Doug H - 18/Nov/05 02:01 PM
That should be fixed, but if you write code like that it will generate a warning already, because
it is very easy to mistakenly type = instead of == there.

def doit(x as int):
return x=3

result = doit(2)
print result