Out variables or return args


#1

I have this method signature (; WayPoint waypoint)

When I try the following code:
foo(; !waypoint)
bar(waypoint)

The compiler complains, it tells me that waypoint is not in the correct scope. However, if I format my code like this:
!waypoint
foo(; waypoint)
bar(waypoint)

It works fine. I thought that the above style was allowable, am I wrong?


#2

Also hit this last week and reported it. It sounds like it is meant to work, so I’m guessing it’s a bug.


#3

Same here, but my setup was a bit different. Seems there’s a small bug with variable scoping.


#4

I’ll look into this. It should work as you tried it.