gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] CAST to/from procedure type


From: SiTex Graphics
Subject: Re: [Gm2] CAST to/from procedure type
Date: Fri, 17 Apr 2009 17:33:30 -0400

Hi Gaius,

Glad to hear support for CAST of procedure types will be possible.  I
tested again today and apparently these changes haven't yet made it
into the CVS.

I'm also seeing many messages like the following:

symbol 147 -> ToDoConstants

What do those mean?

Thanks,
Scott


On Sat, Apr 4, 2009 at 11:18 AM, Gaius Mulley <address@hidden> wrote:
> SiTex Graphics <address@hidden> writes:
>
>> Hi Gaius,
>>
>> I asked how to cast an address to a procedure type last year. Would it
>> be difficult to support the CAST() syntax?
>>
>> Thanks,
>> Scott
>>
>>
>> I have a wrapper for dlsym() that's used to obtain functions from
>> user-written plugins.  The wrapper looks like:
>>
>> PROCEDURE GetProcAdr ( hmod : ADDRESS; procname :ARRAY OF CHAR ) :PROC;
>>
>> and typical usage is:
>>
>> VAR initproc : INITPROC;
>>
>> ...
>> initproc:=CAST(INITPROC,GetProcAdr(mod,p^.initname));
>> IF CAST(ADDRESS,initproc)=NIL THEN (* failed *)
>>
>> This compiles under XDS and Stonybrook.  gm2 is not happy with the CAST.
>>
>
> Hi Scott,
>
> sorry for not fixing this sooner - yes it should be very easy to
> support.  Slightly surprised it fails - will fix it soon!  Incidentally
> I'm currently fixing the cyclic array -> pointer -> array declaration
> bug you emailed me with 2..3 weeks ago.  I've rewritten
> M2GCCDeclare.mod in the process and I hope to commit the changes in the
> next couple of days,
>
> regards,
> Gaius
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]