View Single Post
Thrawn2
Veteran Member
Join Date: Apr 2009
Old 07-19-2014 , 16:31   Re: New API and Syntax
Reply With Quote #36

Nice, thanks for the fixes.

Found another bug regarding null passed as an any parameter though:
Code:
Foo(any foo) {}
public Bar() {
Foo(null);
}
Edit:
A rather cosmetic issue: combining getters and setters works if used like this
this.Processed = this.Processed + 1;
which is nice.
this.Processed++ garbles up the value though.

This is at least the case for methodmaps deriving from StringMap and setting an integer in the trie, i.e.
Code:
methodmap Foo < StringMap {
  property int Bar {
    public get() {
      int result;
      this.GetValue("foo.bar", result);
      return result;
    }
    public set(int value) {
      this.SetValue("foo.bar", value);
    }
  }
}
__________________
einmal mit profis arbeiten. einmal.

Last edited by BAILOPAN; 07-19-2014 at 17:43.
Thrawn2 is offline