Array-Construction

Hi,

i tried to create some code to create Arrays:

new String[12]

new String[]{"foo", "bar"}

i can't get these things to work within MPS ;(.

If i try to create an Array with Interface-Type i even get the body for an anonymous implementation after the keyword "new". And i don't know how to supress this behaviour.

MIrko

3 comments
Comment actions Permalink

Mirko,

To create array first type new array, then you will have code like this: new int[no expression] then you can press { at its end and have initializer.

Konstantin

0
Comment actions Permalink

Hi Konstantin,

thanks, it works for me.

MIrko

0
Comment actions Permalink

There is a usability problem here, we know. We will fix it.

I created an issue for it: http://jetbrains.net/tracker/issue2/MPS-4255

0

Please sign in to leave a comment.