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
jemc has quit [Quit: WeeChat 2.0.1]
nisanharamati has quit [Quit: Connection closed for inactivity]
brainpro1 has quit [Ping timeout: 264 seconds]
acarrico has quit [Ping timeout: 264 seconds]
acarrico has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
acarrico has quit [Ping timeout: 248 seconds]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
khan has quit [Ping timeout: 240 seconds]
Daniel has joined #ponylang
Daniel is now known as Guest27474
Guest27474 has quit [Quit: Page closed]
magicbit has quit [Ping timeout: 240 seconds]
Pyrrh has quit [Ping timeout: 265 seconds]
Pyrrh has joined #ponylang
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #ponylang
user10032 has joined #ponylang
acarrico has joined #ponylang
brainpro1 has joined #ponylang
droman has joined #ponylang
SenasOzys has quit [Ping timeout: 256 seconds]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
SenasOzys has joined #ponylang
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #ponylang
aturley has joined #ponylang
aturley has quit [Client Quit]
aturley has joined #ponylang
aturley has quit [Client Quit]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
droman has quit [Quit: WeeChat 2.1]
aturley has joined #ponylang
aturley has quit [Quit: aturley]
acarrico has quit [Ping timeout: 240 seconds]
dlowe has quit [Quit: ZNC - http://znc.sourceforge.net]
user10032 has quit [Quit: Leaving]
SenasOzys has quit [Ping timeout: 240 seconds]
acarrico has joined #ponylang
SenasOzys has joined #ponylang
user10032 has joined #ponylang
droman has joined #ponylang
jemc has joined #ponylang
jemc has quit [Quit: WeeChat 2.0.1]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang
infinitary has joined #ponylang
<infinitary> hi
<infinitary> i'd have a beginner question about ref types
<SeanTAllen> fire away infinitary
<SeanTAllen> i might be a little slow answering as i'm watching a hockey game
<infinitary> i'm just getting to learn Pony, am at classes. then i did a little experiment - as you can read it at https://infinitary.org/pony_diaries/ - it's about private fields. but then i realised it should not even have compiled because i did not used any 'ref' type?
<infinitary> the wombat program of the tutorial does give an error message without the 'ref' but my 'other' that is not a ref can be messed with. not sure why
<infinitary> (oh no rush, enjoy your game!)
<SeanTAllen> Sorry, is there a question in there?
<infinitary> the question is how can my bunny program compile and run, without 'other' being a 'ref'?
<infinitary> my own field i can modify if my method is 'ref' but the 'other' i receive is not a 'ref' and yet i can modfy it. is tht correct?
<SeanTAllen> Short answer: Because it is a `ref`
* SeanTAllen class Bunny has `ref` as the default reftype.
<SeanTAllen> If you want it to default to `val` then you want `class val Bunny`
<SeanTAllen> the default reftype for any class is ref
<SeanTAllen> you can provide a different default
<SeanTAllen> like
<SeanTAllen> class val Bunny for val
<SeanTAllen> class iso Bunny for iso
<SeanTAllen> so if you did class val Bunny
<SeanTAllen> then any place you use Bunny without a reftype, Pony will use the default
<SeanTAllen> Does that make sense infinitary ?
<infinitary> yes yes thank ytou
<SeanTAllen> you're welcome
dlowe has joined #ponylang
user10032 has quit [Quit: Leaving]
infinitary has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
khan has quit [Quit: khan]
khan has joined #ponylang
khan has quit [Client Quit]
khan has joined #ponylang