Hello again!
random question, how are you supposed to unbox a value type (say float) ?
Here is how I am trying to do it, but it won't compile:
[code]
public void main(string[] args)
{
float? a = 6;
printfloat((float)a);
}
public void printfloat(float t)
{
stdout.printf(%f\n, t);
Sam Wilson píše v Út 19. 01. 2010 v 11:02 -0500:
Hello again!
random question, how are you supposed to unbox a value type (say float) ?
Here is how I am trying to do it, but it won't compile:
[code]
public void main(string[] args)
{
float? a = 6;
printfloat((float)a);
}