Paul Woitaschek
11/09/2017, 1:26 PMclass.name
?Paul Woitaschek
11/09/2017, 3:17 PMhagabaka
11/09/2017, 4:53 PMbrescia123
11/09/2017, 5:16 PMobject
at runtime has multiple instances?brescia123
11/09/2017, 5:24 PMobject
pastjean
11/09/2017, 11:32 PMShahriyar Nasir
11/10/2017, 4:29 AMTomaz Kragelj
11/10/2017, 10:00 AMvar onDownloadCompleted: ((data: ByteArray) -> Unit)? = null
Coming from Swift, I tried calling it using ? mark but it yields compiler error “(Error:(108, 26) Unexpected tokens (use ‘;’ to separate expressions on the same line)“:
onDownloadCompleted?(bytes)
So currently I’m using longer form which works:
if (onDownloadCompleted != null) {
onDownloadCompleted!!(bytes)
}
But it feels so un-DRY for such a simple task, is there a simpler way? Or am I thinking in wrong direction and should use different callback approach?Leandro Cavalheiro
11/10/2017, 12:04 PMLeandro Cavalheiro
11/10/2017, 12:11 PMelect
11/10/2017, 12:12 PM'break' or 'continue' jumps across a function or a class boundary? Shouldn't be working because
let
is inlined?Slackbot
11/10/2017, 1:30 PMbloodshura
11/10/2017, 6:33 PMredrield
11/11/2017, 3:45 AMwhen
if the lhs matchesSlackbot
11/11/2017, 4:36 PMFré Dumazy
11/12/2017, 12:11 AMketurn
11/12/2017, 7:13 AM@DslMarker
.
world turned upside down, not sure what to think.
will sleep on it.Cisco
11/12/2017, 10:25 AMjoscha.alisch
11/12/2017, 11:14 PMmobigeek
11/13/2017, 2:09 PMtrevjones
11/13/2017, 5:13 PM::class.java
is a compile time constanttrevjones
11/13/2017, 5:13 PMFoo.javaClass
if it has a companion objectnapperley
11/13/2017, 10:04 PMEnd-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /home/napperley/.sdkman/archives/kotlin-1.1.60.zip or
/home/napperley/.sdkman/archives/kotlin-1.1.60.zip.zip, and cannot find /home/napperley/.sdkman/archives/kotlin-1.1.60.zip.ZIP, period.
katz
11/14/2017, 10:48 AMmauri
11/14/2017, 12:02 PMelect
11/14/2017, 4:17 PMval i = 0
as ::i
(type KMutableProperty0<Int>
) and everything worked fine so far. Is it possible to pass the reference of the i-th element of a primitive array?Fré Dumazy
11/14/2017, 4:19 PMsynchronized
worked as it should. But can I use it in async(UI) { }
or make sure this block isn't executed in parallelCodecriticon
11/14/2017, 4:22 PMkarelpeeters
11/14/2017, 4:23 PMval b
get() = array[5]
set(value) { array[5] = value }
and then use ::b
silas.schwarz
11/14/2017, 5:56 PM