[futurebasic] Re: [FB] why doesn't this work?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2001 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Wed, 17 Oct 2001 18:01:00 +0200
Robert Covington wrote:
> 
> >dim record toto
> > dim titi as rgnHandle
> >end record
> >
> >dim gToto as handle to toto
> >
> >...
> >
> >myRect = gToto..titi..rgnBBox
> >
> >compiler complains that it doesn't like this sort of thing, that constant is
> >declared, that record is not the same size...
> >
> >why?
> >
> >:-j
> 
> Should be:
> 
> myRect = gToto.titi..rgnBBox
> 
> Shouldn't it?
> 

This wouldn't fully work since it is still impossible to type a
handle nor a pointer in a record field.
I hope someday we can do that, porting C code would be easier. This
would work I think:

dim record toto
 dim titi as Handle
end record

myRect;8 = @gToto.titi..rgnBBox&
-- 

Cheers

Alain

-----------------------------------------------------
FB^3 in Europe:  http://euro.futurebasic.com/
FB II Pouch:     http://www.pixmix.com/FB/outils.html
-----------------------------------------------------