@var to C code

Mildred Ki'Lya ml.mildred593 at gmail.com
Tue Aug 25 16:51:22 UTC 2009


On 08/25/2009 05:41 PM, Jeremy Cowgar wrote:
> I have something like:
>
> Section Private
>
>   control_handle : POINTER;
>
> I use that variable all over to send the controls handle to C functions
> in my code that is wrapping Iup. In each case I wish to use it, I have
> to:
>
> - set_title title:ABSTRACT_STRING <-
> ( + handle:POINTER;
>   handle := control_handle;
>   // more code
>   `CFuncCall(@handle, ...)`;
> );
>
> Is there any reason why Lisaac does not allow direct use of
> "control_handle", i.e.:
>
> - set_title title:ABSTRACT_STRING <-
> (
>   // other code
>   `CFunCall(@control_handle, ...)`;
> );
>
> I am wondering, not from a parsing standpoint of it just doesn't do it
> right now, but as a language design stand point. It seems that allowing
> such a statement (the later) would be beneficial in almost any wrapping
> of a C library.
>
>   

There is the same problem with @Self
I think there is a reason, but I forgot. Perhaps it has to do with the
fact that @var might be a code slot.

Mildred

-- 
Mildred Ki'Lya
╭───────── mildred593@online.fr ──────────
│ Jabber, GoogleTalk: <mildred at jabber.fr>
│ Website: <http://ki.lya.online.fr>           GPG ID: 9A7D 2E2B
│ Fingerprint: 197C A7E6 645B 4299 6D37 684B 6F9D A8D6 9A7D 2E2B


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/lisaac-devel/attachments/20090825/74839b47/attachment-0001.pgp>


More information about the Lisaac-devel mailing list