guile-user
[Top][All Lists]
Advanced

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

Re: Benchmarks of guile-www against HB's Guile module.


From: Alejandro Forero Cuervo
Subject: Re: Benchmarks of guile-www against HB's Guile module.
Date: Wed, 13 Feb 2002 20:35:49 -0500
User-agent: Mutt/1.2.5i

Hey. :)

Thanks for your cooperation, Neil.

You suggest the following:

    SCM hb_register_public (SCM name, SCM proc)
    {
      return hb_register_internal (hb_get_current_file (), name, proc);
    }
    
    SCM hb_register_internal (HB_FILE *hb_file, SCM name, SCM proc)
    {
      ...;
    }
    
    init_hb ()
    {
      gh_new_procedure2_0 ("hb-register", hb_register_public);
    }

I can't see a difference with doing the following:

    SCM hb_register (SCM name, SCM proc)
    {
      HB_FILE *hb_file = hb_get_current_file();

      hb_file = hb_get_current_file();

      ...;
    }
    
    init_hb ()
    {
      gh_new_procedure2_0 ("hb-register", hb_register);
    }

Does your answer mean I'm forced  to declare a global variable (where is
hb_get_current_file going  to get the current  file from?) if I  want to
have  it passed  to my  function?  Is  there no  way to  register a  new
procedure associating it a void pointer?

Thanks again.  :)

Alejo.
http://bachue.com/alejo

--
The mere formulation of a problem is far more essential than its solution.
      -- Albert Einstein.

$0='!/sfldbi!yjoV0msfQ!sfiupob!utvK'x44;print map{("\e[7m \e[0m",chr ord
(chop$0)-1)[$_].("\n")[++$i%77]}split//,unpack'B*',pack'H*',($F='F'x19).
"F0F3E0607879CC1E0F0F339F3FF399C666733333CCF87F99E6133999999E67CFFCCF3".
"219CC1CCC033E7E660198CCE4E66798303873CCE60F3387$F"#Don't you love Perl?

Attachment: pgpfkOq_zFTap.pgp
Description: PGP signature


reply via email to

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