On Tue, 2001-10-16 at 15:02, James Mastros wrote: > On Tue, 16 Oct 2001, Dan Sugalski wrote: > > That's one way to do it, sure. You can always look at a string as a bounded > > byte buffer. One of the core 'string' types is "series of 8-bit bytes". We > > couldn't manage JPEG images too well without that. ;) > Hm. How do you convert the bytes into integers so you can do arithmetic > with them? (In other words, how do you write unpack('c') and friends.)
I wrote a library in parrot which implemented ord() to do it. I was going to do pack/unpack but I haven't had a chance yet :) > > > Seriously, though, what are you trying to accomplish with providing generic > > access to memory? Perhaps if you had a solid application in mind it'd make > > working out what would be needed to support it easier. > I'm thinking of porting GCC, of course <G>. However, I'm thinking that > pretty much any c-like language is going to want somthing like this. > You are sick. :) Maybe you could compile the linux kernel down into parrot. I did think about writing a kernel module for writing drivers in parrot, but considering the response that the last person got for writing a script interface module to the kernel, I put the thought away :) Brian