plietar has quit [Remote host closed the connection]
plietar has joined #ponylang
_whitelogger has joined #ponylang
user10032 has joined #ponylang
endformationage has quit [Quit: WeeChat 1.9]
user10032 has quit [Quit: Leaving]
vaninwagen has joined #ponylang
samuell has joined #ponylang
samuell has quit [Ping timeout: 240 seconds]
samuell has joined #ponylang
samuell has quit [Ping timeout: 240 seconds]
samuell has joined #ponylang
samuell has quit [Remote host closed the connection]
_andre has joined #ponylang
samuell has joined #ponylang
ShalokShalom_ is now known as ShalokShalom
acarrico has joined #ponylang
samuell has quit [Ping timeout: 264 seconds]
samuell has joined #ponylang
jemc has joined #ponylang
rrader has joined #ponylang
<rrader>
Hi
<rrader>
> A class is declared with the keyword class, and it has to have a name that starts with a capital letter
<rrader>
what about if we should have a class iOS or iPhine, how you will name it?
<rrader>
what about if we should have a class iOS or iPhone, how you will name it?
<SeanTAllen>
you'd have to name it IOS or IPhone rrader
rrader has quit [Quit: Page closed]
ShalokShalom_ has joined #ponylang
ShalokShalom has quit [Ping timeout: 260 seconds]
jsgrant has quit [Remote host closed the connection]
jsgrant has joined #ponylang
samuell has quit [Remote host closed the connection]
samuell has joined #ponylang
vaninwagen has quit [Ping timeout: 248 seconds]
samuell has quit [Quit: Leaving]
user10032 has joined #ponylang
endformationage has joined #ponylang
ShalokShalom_ is now known as ShalokShalom
samuell has joined #ponylang
samuell has quit [Remote host closed the connection]
aturley has joined #ponylang
samuell has joined #ponylang
samuell has quit [Remote host closed the connection]
samuell has joined #ponylang
samuell has quit [Remote host closed the connection]
samuell has joined #ponylang
rurban has joined #ponylang
rurban has quit [Client Quit]
_andre has quit [Quit: leaving]
samuell has quit [Quit: Leaving]
tscho has quit [Read error: Connection reset by peer]
tscho has joined #ponylang
user10032 has quit [Quit: Leaving]
<endformationage>
Hello. I'm attempting to use primitives in a generic type parameter like one would with C++ template expression parameters. I'm wondering if something like this is possible:
<jemc>
`Array.size` will reflect the number of elements that have been "pushed in" already, so in this case it shows as zero
<jemc>
`Array.space` would be the next recommendation, but it will always show as eight in both of your examples, since `Array` allocates to the nearest power of two, starting with 8
<jemc>
depending on what your requirements are, you may find it easier to model what you're doing as `Vector2[T]` and `Vector3[T]`, and store the members as fields, to avoid over-allocation, and avoid working against the "partial" nature of dynamic Arrays
jemc has quit [Ping timeout: 240 seconds]
<endformationage>
Thanks jemc!
<endformationage>
Oh, missed him.
<endformationage>
Oh, darn, that was the original link that was paste.