complex math with poi 
Author Message
 complex math with poi


 In> I'm trying to do complex math with pointers - the only way to do it, I
 In> believe. Below is what I've got (which should work). The question is,
 In> can it be done in a better/smarter way (please leave OOP out of this),
 In> perhaps just some things that are obsolete or whatever. Especially I
 In> was dissapointed to find out, that I had to "hand over" the contents
 In> between pointers instead of simply handing over the pointer address
 In> (somehow I seem to think that is much smarter, but it doesn't work that
 In> way).

It *does* work that way, when you pass parameters by reference using the
VAR keyword:

 In> function add(var x1,x2 : complex) : complex;
                  ^^^

  /-=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=-\

  %        Author of Disk Ease v0.9.2 Floppy Disk Indexer/Database       $
  $               http://www.*-*-*.com/ ~kforwood/              %
  \-=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=--=oOo=-/
            WARNING:  Unsolicited advertising will be reported
                  to your ISP. Flames merely laughed at.

___ Blue Wave/QWK v2.20



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. bvp303d.zip Complex number math library, OptiCode

2. complex math with pointers

3. operator overloading (for complex math)

4. complex.zip Complex TP arithmetic+transc. functions, TP5+, E.Glynn

5. Query too Complex

6. MYSQL - Complex Query

7. Creating temp files for complex queries - how ?

8. coding complex number operations in TP7

9. Interbase database administration - how complex?

10. Complex SQL Question - I Think :-P

11. Complex query

12. ACCESS-ODBC-Error: Query is too complex

 

 
Powered by phpBB® Forum Software