[futurebasic] Re: [FB] Fortran and C to FB

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: Charlie Dickman <charlied@...>
Date: Thu, 20 May 1999 20:29:06 -0400
>Couple of conversion questions for those who know and can help...
>
>Re: Fortran, it has been so long since I used it, what would the variable
>types for "real*4" be in FB? %,&,#,! ? And what about the term "implicit
>none", what did that reference back in that language?
>
>real*4 x1,y1,z1,x2,y2,z2,x3,y3,z3,xp,yp
>real*4 a,b,c,d

Fortran real*4 are like FB !'s

implicit none is the same as _dimmedVarsOnly


>'Begin C stuff:
>    .
>typedef struct {
>   double x,y,z;
>} XYZ;
>typedef struct TRIANGLE {
>        long p1,p2,p3;
>} TRIANGLE;
>typedef struct EDGE {
>        long p1,p2;
>} EDGE;


DIM RECORD XYZ
  DIM x#
  DIM y#
  DIM z#
DIM END RECORD.XYZ

DIM RECORD TRIANGLE
  DIM p1&
  DIM p2&
  DIM p3&
DIM END RECORD.TRIANGLE

DIM RECORD EDGE
  DIM p1&
  DIM p2&
DIM END RECORD.EDGE

then you can, for example,  DIM ISOSCELES.TRIANGLE


Charlie Dickman
charlied@...