Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 C#: no 'fixed' and anonymous 'delegate' var defs
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

.oisyn
Tomato Guru

162 Posts

Posted - Apr 26 2010 :  5:08:13 PM  Show Profile  Reply with Quote
VAX doesn't seem to understand the variable definitions introduced by fixed blocks and anonymous delegates in C#.

void Foo(int[] array)
{
    fixed (int * ptr = array) // not recognized
    {
        Bar(ptr);             // 'ptr' does not color as a variable
    }

    SomeDelegate d = delegate(int b) { return 2*b; }; // the same with 'b'
}

.oisyn
Tomato Guru

162 Posts

Posted - Apr 26 2010 :  5:12:23 PM  Show Profile  Reply with Quote
Some more info I just figured out:
Both 'b' and 'ptr' in previous example do color as a variable at the site of definition, but not when used. However, when placing the caret on or around the definitions, they all suddenly color in the default text color. Also note that neither the definitions nor their uses actually have red error underlines.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 28 2010 :  2:18:09 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

fixed statement is case=43424

anonymous method is case=43425

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000