RE: [BLACKBOX] structured return types

From: CFB Software <"CFB>
Date: Mon, 6 Jul 2009 16:58:18 +0930

----boundary-LibPST-iamunique-401637982_-_-
Content-type: text/plain

Hi Bernhard,

I'm still thinking about it but I believe JT is correct. User-defined
operators can be conveniently implemented without requiring structured
returns.

However if you are asking me if you can use a BlackBox function:

  PROCEDURE Add ( IN left, right : Complex; OUT res : Complex);

to map onto a C function which takes to input parameters and returns a
structured result my guess is that it is highly unlikely but still worth you
taking a closer look,

Regards,
Chris

Chris Burrows
CFB Software
http://www.cfbsoftware.com
 



>-----Original Message-----
>From: Treutwein Bernhard
>[mailto:Bernhard.Treutwein{([at]})nowhere.xy
>Sent: Monday, 6 July 2009 4:29 PM
>To: info{([at]})nowhere.xy
>Cc: bernhard{([at]})nowhere.xy
>Subject: RE: [BLACKBOX] structured return types
>
>Hi Chris,
>
>> with "If there were only a couple of functions involved ..."
>
>
>but in the mean time (sorry, I don't have access to my work
>mailbox from home, so my reply is a little bit delayed ...
>but the question got motivated by JT and others) I got the
>following idea/question, which has to be checked for the
>stdcall calling sequence:
>
>Is there any difference between (in pseudo CP):
>
>TYPE
> Complex = RECORD
> re, im : REAL
> END;
>
>PROCEDURE Add ( IN left, right : Complex ) : Complex;
>
>and
>
>PROCEDURE Add ( IN left, right : Complex; OUT res : Complex);
>
>regards
>--
> Bernhard Treutwein
> Ludwig-Maximilians-Universität
> bis 1.5.2009: Ref. IIIA3 Anwendungsentwicklung
> seit 1.5.2009: Ref. VI.3 Anwendungsbetreuung
> Martiusstr. 4
> 80802 München
> Tel. 089 2180-2774
> Fax. 089 2180-992774
> Mobil. 0152-01549335
> e-mail: bernhard treutwein (at) verwaltung uni-muenchen de
>
>


----boundary-LibPST-iamunique-401637982_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lz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sep 26 2013 - 06:30:43 UTC