> On Nov 2, 2016, at 09:42, Joe Groff via swift-users <swift-users@swift.org> > wrote: > > Autoreleasepools are an ObjC compatibility feature. They aren't necessary in > standalone Swift.
So Swift’s ref-counting doesn’t use any autorelease mechanism? I was assuming it did (even if it’s not identical to Obj-C’s.) I implemented an ARC-like library for C++ back around 2007 and found that adding an autorelease pool helped by keeping object ref-counts from bouncing up and down so much during assignment and return value passing. > On Nov 2, 2016, at 11:11 AM, Bernardo Breder via swift-users > <swift-users@swift.org> wrote: > > I want to manager the memory, using the autoreleasepool block, with ubuntu > environment, as we can do with Xcode. Apparently you don’t need to because pure Swift objects never get autoreleased, so there’s no pool that needs draining. —Jens _______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users