guile-devel
[Top][All Lists]
Advanced

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

Re: New feature proposal: Support C-code inline?


From: nalaginrut
Subject: Re: New feature proposal: Support C-code inline?
Date: Mon, 25 Apr 2011 09:33:04 +0800

> Well, is the code a piece of string ? Does that mean we'll have code
> generation on-the-fly facilities? ^_^
> 

yes. you don't need to convert var's type, this module does it automatic
for you.

> By the way,  do you like the idea of some kind of inline C-code
> "segments" embed in scm files? (Just like preprocessor blocks in C)

I think there're many new ideas worth trying, and your "C-code segment
embedded" is good for designing some bigger hybrid programming with
C&guile(this C-code inline is better for small code embedded). We may
add more convenient feature, for a instance, typedef/include/C macro. 
But as I said, this simple solution is a temporary substitute before AOT
compiler came out. Embedded big C-code into guile program is not a good
idea. If we really want to do that, the better way is to write an
extension just like Guile always does.

-- 
GNU Powered it
GPL Protected it
GOD Blessed it

HFG - NalaGinrut

--hacker key--
v4sw7CUSMhw6ln6pr8OSFck4ma9u8MLSOFw3WDXGm7g/l8Li6e7t4TNGSb8AGORTDLMen6g6RASZOGCHPa28s1MIr4p-x
 hackerkey.com
---end key---




reply via email to

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