« Return to Thread: [scala] fixed array type
Jorge,Thanks for the response. Unfortunately, that expression does not denote a type. And the type of the thing it does denote is not what is required.Regards,Balthazarscala> new Array[Char](140)res20: Array[Char] = Array(, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ...scala>On Tue, Jun 16, 2009 at 2:53 PM, Jorge Ortiz <jorge.ortiz@...> wrote:
new Array[Char](140) ?
--jOn Tue, Jun 16, 2009 at 2:39 PM, Balthazar Crowley <balthazar.crowley@...> wrote:
Viktor,Since this is only for pedagogical purposes, either will do. The example might be familiar to many: Char arrays limited to 140 elements.Regards,BalthazarOn Tue, Jun 16, 2009 at 12:28 PM, Viktor Klang <viktor.klang@...> wrote:
On Tue, Jun 16, 2009 at 9:24 PM, Balthazar Crowley <balthazar.crowley@...> wrote:
All,Does Scala have a fixed array type?
As opposed to broken ones?
Jokes aside, are you talking about stack-allocated fixed arrays or only that they are fixed as in compile-time size bounded?
Regards,Balthazar
--
Balthazar Crowley
Resident Magician
DSLver.com
--
Viktor Klang
Scala Loudmouth
--
Balthazar Crowley
Resident Magician
DSLver.com
--
Balthazar Crowley
Resident Magician
DSLver.com
« Return to Thread: [scala] fixed array type
| Free embeddable forum powered by Nabble | Forum Help |