juan torres
06/08/2020, 6:22 PMuser
06/09/2020, 9:30 AMTwferrell
06/09/2020, 4:52 PMRyan
06/10/2020, 12:01 AMRyan
06/10/2020, 12:01 AMxii
06/10/2020, 12:11 AMBrian Dilley
06/10/2020, 5:05 PMGyuhyeon
06/11/2020, 7:43 AMopen class A(){
var b: B ?= null
inner class B(){
var t = 1
}
}
class AA(): A() {}
// using from different class
...
AA().apply {
b = B().apply{ // this causes random compile errors after changes unless we change it to explicit "b = this.B().apply ..."
t = 2
}
}
...
I'm gonna guess it will prolly never get fixed due to how trivial it is ¯\_(ツ)_/¯
Note: "randomly" literally means randomly where after compile error of "Unresolved reference", you just have to delete /target and build againSwanand Keskar
06/12/2020, 4:58 PMAyman Patel
06/14/2020, 12:28 PMBig Chungus
06/14/2020, 2:29 PMRyan
06/15/2020, 12:40 PMdead.fish
06/15/2020, 3:04 PMShawn Karber_
06/15/2020, 9:48 PMval aFlags = (1, 2)
val bFlags = (2, 3)
val cFlags = (3, 4)
val dFlags = (4, 5)
fun processInput(letter: Char) {
return letterFlags
}
The use case is I have a lot of different data I need to process, and the flags to compare it depend on the value the user is passing in. For instance the user would call:
processInput('a', their data)
Then my function would grab the list of flags using the variable name aFlags
and process their data that way. I know I could use a when statement, for instance, to do it, but I was just wondering if kotlin had a way to get member references that wayShawn Karber_
06/15/2020, 9:51 PMRyan
06/15/2020, 9:52 PMparth
06/15/2020, 10:51 PMgetValue(ref, kProperty) : T
anything other than T?
, i get a compile error when I try to return a null-something inside getValue
user
06/16/2020, 12:45 PMuser
06/17/2020, 10:35 AMNathan
06/17/2020, 1:55 PMRobert Jaros
06/17/2020, 7:22 PMBrian Dilley
06/17/2020, 7:31 PMBrian Dilley
06/17/2020, 7:32 PMRobert Jaros
06/17/2020, 7:51 PMuser
06/18/2020, 8:05 AMiex
06/18/2020, 10:07 AM1.3.61
? I'm trying to find it in the Github's releases tab but there seems to a nearly infinite number of builds and the page isn't updated if I enter the version in the URL.
Edit: Found it: https://github.com/JetBrains/kotlin/releases/tag/v1.3.61iex
06/18/2020, 10:15 AMjavah -jni -cp ".;path/to/kotlin-runtime.jar" sam.NativeSample
, like described here: https://github.com/fuzzdota/kotlin-jni-exampleAlberto
06/18/2020, 1:24 PMPacane
06/18/2020, 1:39 PMlist.filter {...}
and then checking again the first list against the filtered elements.