jemc changed the topic of #ponylang to: Welcome! Please check out our Code of Conduct => https://github.com/ponylang/ponyc/blob/master/CODE_OF_CONDUCT.md | Public IRC logs are available => http://irclog.whitequark.org/ponylang | Please consider participating in our mailing lists => https://pony.groups.io/g/pony
Praetonus has quit [Quit: Leaving]
bb010g has joined #ponylang
jemc has joined #ponylang
bb010g has quit [Quit: Connection closed for inactivity]
jemc has quit [Ping timeout: 245 seconds]
prettyvanilla has quit [Quit: Konversation terminated!]
amclain has quit [Quit: Leaving]
jemc has joined #ponylang
jemc has quit [Ping timeout: 264 seconds]
Matthias247 has joined #ponylang
_andre has joined #ponylang
Matthias247 has quit [Read error: Connection reset by peer]
jemc has joined #ponylang
jemc has quit [Ping timeout: 258 seconds]
felko has joined #ponylang
<felko> a getter in Pony should be defined as `fun my_attribute(): this->my_attribute_type => _my_attribute` right ?
<felko> and a function that mutates the current object should be marked `fun ref` right ?
jemc has joined #ponylang
<felko> how to copy an array ? I have a String val and I want to copy it to put it in a String ref, is it possible ?
<jemc> felko: to copy a `String val` into a new `String ref`, use the `clone` method and assign it to a `String ref` reference
<jemc> for example, `let b: String ref = a.clone()`
<felko> thanks
<felko> why is it impossible to declare a member variable as ref ?
<felko> the compiler tells me "String box is not a subtype of String ref: box is not a subtype of ref"
<felko> the line being `var _source: String ref`
<felko> ok i found the problem, nevermind
_andre has quit [Quit: leaving]
jemc has quit [Ping timeout: 245 seconds]
jemc has joined #ponylang
jemc has quit [Ping timeout: 258 seconds]
jemc has joined #ponylang
jemc has quit [Ping timeout: 258 seconds]
jemc has joined #ponylang
<felko> how can I turn an Array[U8] into a Array[U8] val ?