Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
N7 version 24.03.05 released
#5
Code:
obj = [
    x: 0, y: 0, dx: 0, dy: 0,
    Update: function()
        ' this.x = this.x + this.dx
        ' this.y = this.y + this.dy
        ' Can now be written as:
        .x = .x + .dx
        .y = .y + .dy
    endfunc,
    GetX: function()
        return .x
    endfuc
]

An example of the first bullet in the release notes. I got sick of writing "this.".
Reply


Messages In This Thread
N7 version 24.03.05 released - by Marcus - 03-05-2024, 07:15 PM
RE: N7 version 24.03.05 released - by johnno56 - 03-05-2024, 07:37 PM
RE: N7 version 24.03.05 released - by Marcus - 03-05-2024, 07:54 PM
RE: N7 version 24.03.05 released - by johnno56 - 03-05-2024, 08:37 PM
RE: N7 version 24.03.05 released - by Marcus - 03-05-2024, 09:13 PM
RE: N7 version 24.03.05 released - by Marcus - 03-07-2024, 05:44 PM
RE: N7 version 24.03.05 released - by 1micha.elok - 03-08-2024, 04:04 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)