View source for Talk:ScalarNext/Version History

From Robowiki
Jump to navigation Jump to search

Contents

Thread titleRepliesLast modified
Java 8 Stack Allocation104:32, 24 February 2018

Java 8 Stack Allocation

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

 

Return to Thread:Talk:ScalarNext/Version History/Java 8 Stack Allocation.

Meanwhile, builder functions behaves the same as constructors. e.g.

Point2D.Double origin() {
  return new Point2D.Double(0, 0);
}

void stack() {
  Point2D.Double a = origin();
  a.setLocation(1, 1);
}

behaves the same as previous example.

Xor (talk)04:32, 24 February 2018