[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [DotGNU]code verification
From: |
Gopal V |
Subject: |
Re: [DotGNU]code verification |
Date: |
Sat, 31 Aug 2002 13:44:49 +0530 |
User-agent: |
Mutt/1.2.5i |
If memory serves me right, Haran Shivanan wrote:
> > Bug ... It is the params argument passing issue ...
> >
> > String[] s= r.Split(new char[]{'.'});
> >
> > Should solve it for now ... the compiler mistakenly assumes r.Split()
> > as a params method and tries for a single argument case ...
>
> Something else is wrong.
>
> Compiling the above code give:
> invalid value for argument 1
> incompatible types in assignment: no conversion from 'invalid type' to
> 'System.String[]'
2002-08-07 Rhys Weatherley <address@hidden>
* cscc/csharp/cs_misc.tc: implement array initializers in "new"
expressions.
...........
2002-07-25 Rhys Weatherley <address@hidden>
* NEWS, configure.in: update version for the "0.4.2" release.
Get the idea ? (0.4.2 is too old ... maybe we'll have 0.4.4 next week,
or 0.5.0 considering that the C compiler is considered Unstable ....)
> char[] c ={'.'};
> String s[]=r.Split(c)
>
> but this just seems to copy r to s[0].
> s.Length is giving a value of 1.
This is due to the obvious fact that r does not have any '.' characters ...
String.Split() is not a regexp ... You should have split with respect to
' ' to get something useful..
Gopal
--
The difference between insanity and genius is measured by success