grrrrr. #define should be typedef

2004-06-11 Thread Nicholas Clark
Any reason *not* to make this change: Index: include/parrot/string.h === RCS file: /cvs/public/parrot/include/parrot/string.h,v retrieving revision 1.59 diff -d -u -r1.59 string.h --- include/parrot/string.h 22 Apr 2004 08:55:06

Re: Basics of the base PMC class set

2004-06-11 Thread Dan Sugalski
At 3:56 PM -0500 6/10/04, Matt Fowles wrote: All~ Speaking of basic PMC types, I remember a bunch of basic array PMCs that were discussed recently, some for each register type, some which autovivified, some which didn't etc. I believe that a stringarray was actually inserted (although

Re: grrrrr. #define should be typedef

2004-06-11 Thread Dan Sugalski
At 10:50 AM +0100 6/11/04, Nicholas Clark wrote: Is there any reason not to have a coding standard that typedef should be used whenever possible (and non-uses must have their reason commented?) Nope. So mote it be. typedefs for types, #defines for constants and bizarre (*temporary*!) debugging

Re: Basics of the base PMC class set

2004-06-11 Thread Bernhard Schmalhofer
Dan Sugalski wrote: I'm going to formally establish a basic set of parrot PMC classes. We're going to now have: Undef - The undefined value. Looks like 0, 0.0, false, or the empty string, depending on how you peer at it. Can transform into any other type. Assignment of an boolean, integer,

Re: Basics of the base PMC class set

2004-06-11 Thread Dan Sugalski
At 2:38 PM +0200 6/11/04, Bernhard Schmalhofer wrote: Dan Sugalski wrote: I'm going to formally establish a basic set of parrot PMC classes. We're going to now have: Undef - The undefined value. Looks like 0, 0.0, false, or the empty string, depending on how you peer at it. Can transform

[perl #30220] off by one in string_unescape_cstring

2004-06-11 Thread via RT
# New Ticket Created by Nicholas Clark # Please include the string: [perl #30220] # in the subject line of all future correspondence about this issue. # URL: http://rt.perl.org:80/rt3/Ticket/Display.html?id=30220 --- osname= darwin osvers= 7.3.0 arch= darwin-64int-2level cc= ccache

Re: Basics of the base PMC class set

2004-06-11 Thread Matt Fowles
All~ Are you suggesting that these things use the PMC classes for String|Integer|Float or should they use STRING|INTVAL|FLOATVAL? Also, looking through CVS there appears to already be array.pmc -- basic resizable array floatvalarray.pmc -- Array of FLOATVALs intlist.pmc -- Array of

Re: Basics of the base PMC class set

2004-06-11 Thread Dan Sugalski
At 12:57 PM -0500 6/11/04, Matt Fowles wrote: All~ Are you suggesting that these things use the PMC classes for String|Integer|Float or should they use STRING|INTVAL|FLOATVAL? Externally? They should use the classes. When you do a get_pmc_keyed from a StringArray, the result should be a String

The next release

2004-06-11 Thread Dan Sugalski
While I realize that Leo's doing conference stuff at the moment, I'd like to start thinking about the next release. For this, I think I'd specifically like to shoot for the redo of classes/ -- getting all the PMCs we *want* actually in and working, and the ones we don't marked deprecated,

Another small task for the interested

2004-06-11 Thread Dan Sugalski
I checked in more of PDD 17, detailing parrot's base types. Some of those types definitely don't exist (like, say, the string and bignum type...) and could definitely use implementing. Should be fairly straightforward, and would be a good way to get up to speed on writing PMC classes. --

Big nums

2004-06-11 Thread Dan Sugalski
Time for these as well. There's a partial implementation of them in types/bignum.c. I think it's time to move that to src/ (and the header file to .h) and get it integrated into parrot. -- Dan --it's like this--- Dan Sugalski