Temporary files

26 views
Skip to first unread message

Russel Winder

unread,
Jun 19, 2016, 11:28:55 AM6/19/16
to Ceylon Users
The documentation for Directory.TemporaryFile in ceylon.file shows the
example:

try (tempFile = temporaryDirectory.TemporaryFile()) {
    // ...
}

but this will not compile, you have to provide the two arguments:

try (tempFile = temporaryDirectory.TemporaryFile(null, null)) {
    // ...
}

I suspect posting here is likely not the right vehicle for these sorts
of "bugs".

--

Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel...@ekiga.net
41 Buckmaster Road m: +44 7770 465 077 xmpp: rus...@winder.org.uk
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc

Tako Schotanus

unread,
Jun 19, 2016, 11:30:28 AM6/19/16
to ceylon-users
Probably just open an issue for it on the SDK project yes :)


-Tako

--
You received this message because you are subscribed to the Google Groups "ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-users...@googlegroups.com.
To post to this group, send email to ceylon...@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/1466350132.3908.2.camel%40winder.org.uk.
For more options, visit https://groups.google.com/d/optout.

John Vasileff

unread,
Jun 19, 2016, 11:38:48 AM6/19/16
to ceylon...@googlegroups.com
Yes, please open an issue at https://github.com/ceylon/ceylon-sdk/issues and I’ll fix the docs.

FTR, the current docs *will* be correct after https://github.com/ceylon/ceylon/issues/5832

John

Reply all
Reply to author
Forward
0 new messages