Wiki

Changes between Initial Version and Version 1 of Ticket #199

Show
Ignore:
Timestamp:
02/25/10 08:30:49 (15 years ago)
Author:
Chuck
Comment:

Nice catch. Here is a smaller program that demonstrates the bug:

class P

	def foo(x as inout int)
		x = 5

	def main
		y = 0
		.foo(y)
		assert y == 5

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #199 – description

    initial v1  
    1  
    21If a call to a fxn that has inout parameters is made w/o the inout parameter, the C# equivalent message is given: "error: Argument "1" must be passed with the "ref" keyword"  However, adding "ref" before argument 1 does not fix the issue, adding "inout" does. 
    32