Re: Problems to install Guile 2.0.0

2011-03-09 Thread Andy Wingo
On Wed 09 Mar 2011 01:05, Germán Arias writes: > This is gNewSense Deltah, with the latest updates. The architecture is > i686 (an old Pentium III). What GCC version? Andy -- http://wingolog.org/

Re: Parsing a struct within a struct

2011-03-09 Thread Aidan Gauland
On Tue, Mar 08, 2011 at 08:20:29PM +1300, Aidan Gauland wrote: > (parse-c-struct event-pointer > (list uint8 uint8 uint8 > (list uint8 int int uint16 ))) > It seemed to be an off-by-one(-byte) error. There was padding to align (to 32-bits, I think) the sub-st

Re: Is there any approach to define "private" vars in GOOPS?

2011-03-09 Thread Neil Jerram
nalaginrut writes: > hi all! > I got a question. Is there any approach to define a "private" > vars/methods in the GOOPS? Or it's impossible? I didn't find any > "private" info in the GOOPS manual. Hi there! In Guile, the visibility of identifiers - including any functions you've defined to get

Re: Problems to install Guile 2.0.0

2011-03-09 Thread Mark H Weaver
Germán, Please send us the output of the following commands: gcc --version gcc -dumpmachine cat /proc/cpuinfo free -m And finally, again from the libguile directory, please run the following command and send us the output. It is slightly different than the last one you tried. gcc -std=

Re: Is there any approach to define "private" vars in GOOPS?

2011-03-09 Thread nalaginrut
> If you can determine at runtime whether or not any given slot access is > allowed - perhaps based on (current-module) - it should be possible to > enforce this by defining a new kind of slot #:allocation and putting > that runtime check in the #:slot-ref function. > > Regards, > Neil Th

Re: Is there any approach to define "private" vars in GOOPS?

2011-03-09 Thread nalaginrut
> > If you can determine at runtime whether or not any given slot access is > > allowed - perhaps based on (current-module) - it should be possible to > > enforce this by defining a new kind of slot #:allocation and putting > > that runtime check in the #:slot-ref function. > > > > Regards, > >

Re: Is there any approach to define "private" vars in GOOPS?

2011-03-09 Thread Mark H Weaver
There is another approach (probably overkill) to storing private attributes of GOOPS objects, or any other Scheme object for that matter: Weak-key hash tables, documented in section 6.18.3.1 of the manual. A nice high-level interface for using them is `make-object-property'. However, it should be

tekuti

2011-03-09 Thread David Pirotte
Hello, Trying tekuti for the very frst time [never used/hold any blog, please excuse my total lack of knowledge about this] I took a git clone and slightly modified config.scm and mod-lisp.scm for using the port 8085 [8080 already used by guile-www intranet ...], then performed the required

Re: Problems to install Guile 2.0.0

2011-03-09 Thread Germán Arias
Output for gcc --version: german@german-desktop:~$ gcc --version gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3) Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR P

Re: Problems to install Guile 2.0.0

2011-03-09 Thread Neil Jerram
Germán Arias writes: > Output for gcc --version: > > german@german-desktop:~$ gcc --version > gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu3) > Copyright (C) 2007 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is > NO > warranty; not even for MERCHAN

Re: Is there any approach to define "private" vars in GOOPS?

2011-03-09 Thread Andy Wingo
On Wed 09 Mar 2011 10:37, nalaginrut writes: > But I still want to talk this topic: "How to hide the critical > property?" I don't know what the GOOPS / CLOS answer is to this, but more generally, you might enjoy the following paper: http://mumble.net/~jar/pubs/secureos/ Regards, Andy --

guile-2.0 - Character Encoding of Source Files - #! ... !# not working [low priority]

2011-03-09 Thread David Pirotte
Hi Just because I hit it today i am reporting this, but with low priority. I got into this small problem [a very small and ridiculous example for the sake of 'demonstration']: the doc says [6.17.7] The coding declaration must appear in a scheme comment. It can either be a semico

Re: Problems to install Guile 2.0.0

2011-03-09 Thread Germán Arias
OK, I solved the problem. Checking the files vm.c, vm.s,... . I found the character at file vm.c. I remember some time ago I had a compilation problem caused by this character in a file. However, this character not always cause problems. I removed all occurrences of this character in vm.c, and

Installing scheme only programs

2011-03-09 Thread Diogo F . S . Ramos
I have a program written entirely in guile's scheme and I use autotools to distribute it. Is there a guide to distribute guile programs? I know that some languages have, but I can see any in the guile docs. My biggest concern is about the .scm files that makes up my program. For those who know