[perl6/specs] ddcd70: mention sink means void elsewhere

2015-02-27 Thread GitHub
-glossary.pod Log Message: --- mention sink means void elsewhere

Re: Could method calls warn in void context?

2015-01-11 Thread Carl Mäsak
...It could also be taken as a subtle suggestion to write unit tests, in which case you would discover such logical bugs within one red/green/refactor iteration. ;-) // Carl On Sat, Jan 10, 2015 at 10:12 PM, Gabor Szabo wrote: > > > On Sat, Jan 10, 2015 at 11:02 PM, Moritz Lenz wrote: >> >> To

Re: Could method calls warn in void context?

2015-01-10 Thread Gabor Szabo
On Sat, Jan 10, 2015 at 11:02 PM, Moritz Lenz wrote: > To elaborate a bit on the previous answer: > > On 10.01.2015 17:12, Tobias Leich wrote: > >> In case we would know that certain methods had no side effects (and are >> not called because of their side effects), ... >> >> But at the moment we

Re: Could method calls warn in void context?

2015-01-10 Thread Moritz Lenz
To elaborate a bit on the previous answer: On 10.01.2015 17:12, Tobias Leich wrote: In case we would know that certain methods had no side effects (and are not called because of their side effects), ... But at the moment we don't know and therefore we can't warn for every method. there are tw

Re: Could method calls warn in void context?

2015-01-10 Thread Tobias Leich
$str.substr(/regex/, 'replaement) > > when I should write > > $str.=substr(/regex/, 'replaement) > > > The former will *return* the replaced string to the void but not > change it. > > I don't know if the above can be ever useful, but maybe this kind o

Could method calls warn in void context?

2015-01-10 Thread Gabor Szabo
I keep writing code like this: $str.substr(/regex/, 'replaement) when I should write $str.=substr(/regex/, 'replaement) The former will *return* the replaced string to the void but not change it. I don't know if the above can be ever useful, but maybe this kind of constructs

[perl #112492] Mac OS X warning: request for implicit conversion from 'void *'

2012-04-17 Thread via RT
# New Ticket Created by Paweł Pabian # Please include the string: [perl #112492] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=112492 > multidispatch.c:432: warning: request for implicit conversion from 'vo

[perl #112308] Mac OS X "warning: control may reach end of non-void function [-Wreturn-type]"

2012-04-06 Thread via RT
ngs occur: perl6lexinfo.c:121:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ multidispatch.c:807:1: warning: control may reach end of non-void function [-Wreturn-type] } ^

[perl #69552] subst should warn on void or bool context

2009-10-04 Thread via RT
# New Ticket Created by Aaron Sherman # Please include the string: [perl #69552] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=69552 > When .subst has a void or Bool context, it should issue a warning, since there is

[perl #66252] Regex matches in void context don't set $/ in Rakudo

2009-06-04 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #66252] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66252 > rakudo: my $x = "test"; given $x { say $_; m/(e.)/; say $/ } rakudo c907d3: OUTPUT«

[perl #64514] =$*IN in void context terminates the program in Rakudo

2009-04-07 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #64514] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=64514 > rakudo: =$*IN; say "FOO" rakudo 0310a3: ( no output ) what's going on there? masak:

[perl #63864] Void-context prompt in Rakudo prints but doesn't read from $*IN

2009-03-20 Thread jn...@jnthn.net via RT
On Sat Mar 14 03:57:46 2009, masak wrote: > it seems that void-context prompt doesn't read a line, though. > is that a bug or a feature? > hmm > if a feature, it seems not such a desirable one, by me. > I mean, print already does that, and has a more apt name for >

[perl #63864] Void-context prompt in Rakudo prints but doesn't read from $*IN

2009-03-14 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63864] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63864 > it seems that void-context prompt doesn't read a line, though.

Use Pointer instead of UnManagedStruct for void ** opaque out pointer in SQLite

2008-11-20 Thread Kevin Tew
I think use of "V" in your signature will allow you to do away with your C code grep for nci_vVi in t/pmc/nci.t and src/nci_test.c for an example. Note that it used Pointer not UnmanagedStruct Kevin

[perl #56828] [PATCH] Add nativecall support for void** params

2008-07-11 Thread via RT
# New Ticket Created by Donald Hunter # Please include the string: [perl #56828] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=56828 > Added support for void** params, i.e. for out parameters. This is required

[perl #42313] [CAGE] improper casting to void * in src/dynext.c

2008-07-02 Thread Christoph Otto via RT
On Thu Jun 12 09:56:55 2008, nahoo wrote: > > Does this suggest that the patch is moot, and that we may close the > ticket? > > yes. > Since the patch seem to have been applied without this ticket being updated, I'm marking it as resolved now.

Re: [perl #42313] [CAGE] improper casting to void * in src/dynext.c

2008-06-12 Thread Rubén Porras
> Does this suggest that the patch is moot, and that we may close the ticket? yes.

[perl #42313] [CAGE] improper casting to void * in src/dynext.c

2008-06-09 Thread James Keenan via RT
Grepping for 'load_func' in src/dynext.c, I no longer see the line which the OP was proposing to patch. 312:ARGIN_NULLOK(PMC *(*load_func)(PARROT_INTERP)), 317:if (load_func) 318:lib_pmc = (*load_func)(interp); 321:if (!load_func || !lib_pmc) 347:PMC *(*load_fun

Re: [perl #53544] [PATCH] digst_pmc.in: Void functions can not return values.

2008-04-29 Thread chromatic
On Tuesday 29 April 2008 21:28:18 Andy Dougherty wrote: > If I have traced its lineage correctly, this patch fixes the following > problem in sha256.c and sha512.c: > > "./sha256.pmc", line 164: void function cannot return value > > (note that line 164 of sh

[perl #53544] [PATCH] digst_pmc.in: Void functions can not return values.

2008-04-29 Thread via RT
in sha256.c and sha512.c: "./sha256.pmc", line 164: void function cannot return value (note that line 164 of sha256.pm is actually the "vim: ..." comment at the end of the file. I'm not sure where the line numbers are getting messed up.) --- parrot-svn/config/gen/c

[perl #41328] [BUG] pmc2c generates unnecessary code for void functions

2008-04-07 Thread Will Coleda via RT
On Tue Jan 23 14:20:21 2007, particle wrote: > when compiling src/pmc/pmethod.c, cl has a few warnings: > > src\pmc\pmethod_test.c > D:/usr\local\parrot\bug\tools\build\../../lib\Parrot\Pmc2c\Utils.pm(1096) > : warn > ing C4102: 'test_method0_returns' : unreferenced label > D:/usr\local\parrot\bug

void returns from PCCMETHODs

2008-01-11 Thread Allison Randal
In the old METHODs I'm converting on the pdd17pmc branch, a number of them have a void return signature (now simply no return value), and use void returns to bail out early on exceptional conditions. As in: if (!foo) return; But, PCCMETHODs don't currently provide a way o

Re: [perl #44101] Parrot 0.4.14 fails: "src/pmc/object.c", line 153: void function cannot return value

2007-09-11 Thread Andy Dougherty
On Tue, 11 Sep 2007, Bernhard Schmalhofer via RT wrote: > On Mo. 23. Jul. 2007, 10:35:38, doughera wrote: > > As of version 0.4.14, parrot no longer builds for me with Sun's > > Workshop > > compiler on Solaris 8/SPARC. I get 66 errors of the form: > > > >

[perl #44101] Parrot 0.4.14 fails: "src/pmc/object.c", line 153: void function cannot return value

2007-07-24 Thread via RT
piler on Solaris 8/SPARC. I get 66 errors of the form: "src/pmc/object.c", line 153: void function cannot return value I tried browsing through the source history for lib/Parrot/Pmc2c via the SVN web interface, but kept getting errors of the form: An Exception Has Occurred

Re: [perl #42313] improper casting to void * in src/dynext.c

2007-04-06 Thread Nicholas Clark
t; # http://rt.perl.org/rt3/Ticket/Display.html?id=42313 > > > > > > > load_func is not a void pointer. > > > > Index: src/dynext.c > > === > > --- src/dynext.c(revisio

Re: [perl #42313] improper casting to void * in src/dynext.c

2007-04-05 Thread Leopold Toetsch
Am Donnerstag, 5. April 2007 17:22 schrieb via RT: > # New Ticket Created by > # Please include the string: [perl #42313] > # in the subject line of all future correspondence about this issue. > # http://rt.perl.org/rt3/Ticket/Display.html?id=42313 > > > > load_fu

[perl #42313] improper casting to void * in src/dynext.c

2007-04-05 Thread via RT
# New Ticket Created by # Please include the string: [perl #42313] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42313 > load_func is not a void pointer. Index: src/dynex

Re: [perl #42110] [PATCH] Returning values from void functions

2007-03-29 Thread Nicholas Clark
On Thu, Mar 29, 2007 at 04:08:58PM -0700, chromatic wrote: > On Thursday 29 March 2007 15:44, Steve Peters wrote: > > > On Thu, Mar 29, 2007 at 12:51:54PM -0700, Leopold Toetsch via RT wrote: > > > Sweeping dirt under the rug doesn't mean that the house has been cleaned > > up. It means I've tur

Re: [perl #42110] [PATCH] Returning values from void functions

2007-03-29 Thread chromatic
On Thursday 29 March 2007 15:44, Steve Peters wrote: > On Thu, Mar 29, 2007 at 12:51:54PM -0700, Leopold Toetsch via RT wrote: > Sweeping dirt under the rug doesn't mean that the house has been cleaned > up. It means I've turned it into someone else's problem. I'd rather > Parrot was solid and

Re: [perl #42110] [PATCH] Returning values from void functions

2007-03-29 Thread Leopold Toetsch
Am Freitag, 30. März 2007 00:44 schrieb Steve Peters: > Sweeping dirt under the rug doesn't mean that the house has been cleaned > up. It's not related to hiding other possible errors. Some warnings are just not appropriate to the usage of the very code, and there are a lot of them. leo

Re: [perl #42110] [PATCH] Returning values from void functions

2007-03-29 Thread Steve Peters
On Thu, Mar 29, 2007 at 12:51:54PM -0700, Leopold Toetsch via RT wrote: > Am Mittwoch, 28. März 2007 20:41 schrieb Nicholas Clark: > > Getting parrot to build under -ansi -pedantic is left as an exercise to the > > reader. > > By filtering other useless and/or nonsensical warnings - yes - else no.

Re: [perl #42110] [PATCH] Returning values from void functions

2007-03-29 Thread Steve Peters
On Wed, Mar 28, 2007 at 07:41:25PM +0100, Nicholas Clark wrote: > On Tue, Mar 27, 2007 at 05:42:12AM -0700, Steve Peters via RT wrote: > > > > Anyway, it's worth noting that although one of functions actually > > > doesn't > > > return anything, it is documented as returning a PMC *. So either th

Re: [perl #42110] [PATCH] Returning values from void functions

2007-03-29 Thread Leopold Toetsch
Am Mittwoch, 28. März 2007 20:41 schrieb Nicholas Clark: > Getting parrot to build under -ansi -pedantic is left as an exercise to the > reader. By filtering other useless and/or nonsensical warnings - yes - else no. leo - been there, done that

Re: [perl #42110] [PATCH] Returning values from void functions

2007-03-28 Thread Nicholas Clark
n is wrong in parrotobject.pmc and should > > be > > fixed. > > Unfortunately, I can't find a gcc warning flag that would seem to catch this > sort of situation > either. $ gcc -ansi -pedantic -Wall -o void void.c void.c: In function `uggh': void.c:9: warning: `ret

Re: [perl #42110] [PATCH] Returning values from void functions

2007-03-27 Thread chromatic
On Tuesday 27 March 2007 11:32, chromatic wrote: > On Monday 26 March 2007 20:55, Steve Peters wrote: > > A couple of functions in XX are trying to return values from void > > functions. To some compilers, such as the standard HP-UX compilers, this > > is a big no-no. The p

Re: [perl #42110] [PATCH] Returning values from void functions

2007-03-27 Thread chromatic
On Monday 26 March 2007 20:55, Steve Peters wrote: > A couple of functions in XX are trying to return values from void > functions. To some compilers, such as the standard HP-UX compilers, this is > a big no-no. The patch below fixes this problem. Thanks, applied as r17791. -- c

[perl #42110] [PATCH] Returning values from void functions

2007-03-27 Thread Steve Peters via RT
http://rt.perl.org/rt3/Ticket/Display.html?id=42110 > > > > > > > A couple of functions in XX are trying to return values from void > functions. > > To some compilers, such as the standard HP-UX compilers, this is a > big > > no-no. The patch below fixes this problem.

Re: [perl #42110] [PATCH] Returning values from void functions

2007-03-27 Thread Andrew Dougherty
e of functions in XX are trying to return values from void functions. > To some compilers, such as the standard HP-UX compilers, this is a big > no-no. The patch below fixes this problem. Yes. I sent in this same patch last week. I didn't send it to RT since I thought it was so

[perl #42110] [PATCH] Returning values from void functions

2007-03-26 Thread via RT
# New Ticket Created by Steve Peters # Please include the string: [perl #42110] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42110 > A couple of functions in XX are trying to return values from void functions. To s

[PATCH] void functions can't return values.

2007-03-22 Thread Andy Dougherty
Void functions can't try to return anything. I haven't checked if this patch is "right" or not. The documentation for Parrot_set_attrib_by_num() claims it returns a PMC *, but the source code uses 'void' and doesn't actually return anything. I don't k

Re: [perl #41328] [BUG] pmc2c generates unnecessary code for void functions

2007-03-16 Thread James E Keenan
chromatic wrote: Jim, can you resend with diffs in unified format? (That's "diff -u", not "diff".) They're much, much easier to read. -- c I screwed up. I attached this to the wrong ticket.

Re: [perl #41328] [BUG] pmc2c generates unnecessary code for void functions

2007-03-16 Thread chromatic
Jim, can you resend with diffs in unified format? (That's "diff -u", not "diff".) They're much, much easier to read. -- c

[perl #41328] [BUG] pmc2c generates unnecessary code for void functions

2007-01-23 Thread James Keenan via RT
On Tue Jan 23 14:20:21 2007, particle wrote: > when compiling src/pmc/pmethod.c, cl has a few warnings: > > src\pmc\pmethod_test.c > D:/usr\local\parrot\bug\tools\build\../../lib\Parrot\Pmc2c\Utils.pm(1096) > : warn > ing C4102: 'test_method0_returns' : unreferenced label > [snip] > it seems the p

[perl #41328] [BUG] pmc2c generates unnecessary code for void functions

2007-01-23 Thread via RT
# New Ticket Created by Jerry Gay # Please include the string: [perl #41328] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=41328 > when compiling src/pmc/pmethod.c, cl has a few warnings: src\pmc\pmethod_test.c D:/usr\loc

[perl #40253] [PATCH] [CAGE] always cast printf("%p") to (void *)

2006-12-21 Thread Paul Cochrane via RT
On Wed Dec 20 14:21:52 2006, coke wrote: > Whatever you were able to apply is fine. Applied in 16211, thanks!

Re: [perl #40253] [PATCH] [CAGE] always cast printf("%p") to (void *)

2006-12-20 Thread Will Coleda
Whatever you were able to apply is fine. On Dec 20, 2006, at 10:35 AM, Paul Cochrane via RT wrote: On Tue Aug 29 19:03:44 2006, coke wrote: The attached patch casts all the printfs arguments corresponding to "% p" to be (void *), to avoid compiler warnings. However, the follo

[perl #40253] [PATCH] [CAGE] always cast printf("%p") to (void *)

2006-12-20 Thread Paul Cochrane via RT
On Tue Aug 29 19:03:44 2006, coke wrote: > The attached patch casts all the printfs arguments corresponding to "% > p" to be (void *), to avoid compiler warnings. > > However, the following tests fail after the change: > > Failed Test Stat Wstat Total

Re: [perl #40253] [PATCH] always cast printf("%p") to (void *)

2006-09-01 Thread Joshua Hoblitt
06 at 07:03:44PM -0700, Will Coleda wrote: > >># New Ticket Created by Will Coleda > >># Please include the string: [perl #40253] > >># in the subject line of all future correspondence about this issue. > >># http://rt.perl.org/rt3/Ticket/Display.html?id=40253 >

Re: [perl #40253] [PATCH] always cast printf("%p") to (void *)

2006-08-31 Thread Will Coleda
l?id=40253 > The attached patch casts all the printfs arguments corresponding to "% p" to be (void *), to avoid compiler warnings. However, the following tests fail after the change: Failed Test Stat Wstat Total Fail

Re: [perl #40253] [PATCH] always cast printf("%p") to (void *)

2006-08-31 Thread Joshua Hoblitt
g/rt3/Ticket/Display.html?id=40253 > > > > The attached patch casts all the printfs arguments corresponding to "% > p" to be (void *), to avoid compiler warnings. > > However, the following tests fail after the change: > > Failed Test

[perl #40253] [PATCH] always cast printf("%p") to (void *)

2006-08-29 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #40253] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=40253 > The attached patch casts all the printfs arguments corresponding to "% p"

[perl #37405] [RFE] void function return in PIR

2005-10-10 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #37405] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/rt3/Ticket/Display.html?id=37405 > Currently when invoking a .Sub in PIR with no return values, you must write: function

Re: The Void type

2005-05-18 Thread TSa (Thomas Sandlaß)
HaloO Autrijus, you wrote: On Fri, May 13, 2005 at 07:13:53PM +0200, "TSa (Thomas Sandlaß)" wrote: Larry Wall wrote: : Void context still exists and is not a form of singular or plural : context. Perhaps this should be called nullar context, although void : context works equally well for

Re: The Void type

2005-05-13 Thread Rod Adams
Autrijus Tang wrote: On Fri, May 13, 2005 at 07:13:53PM +0200, "TSa (Thomas Sandlaß)" wrote: Larry Wall wrote: : Void context still exists and is not a form of singular or plural : context. Perhaps this should be called nullar context, although void : context works equally well

The Void type

2005-05-13 Thread Autrijus Tang
On Fri, May 13, 2005 at 07:13:53PM +0200, "TSa (Thomas SandlaÃ)" wrote: > Larry Wall wrote: > >: Void context still exists and is not a form of singular or plural > >: context. Perhaps this should be called nullar context, although void > >: context works equally w

Re: [perl #35053] [PATCH] classes/float.pmc: void function can't return a value

2005-04-21 Thread Leopold Toetsch
Andy Dougherty <[EMAIL PROTECTED]> wrote: > In classes/float.pmc, the MMD_DEFAULT branch of i_subtract tries to > return a value, even though the function is defined as 'void'. Thanks, applied. leo

[perl #35053] [PATCH] classes/float.pmc: void function can't return a value

2005-04-20 Thread via RT
lue, even though the function is defined as 'void'. I haven't worked my way through the pmc generation stuff to be certain this is the right patch, but it will at least compile. --- parrot-current/classes/float.pmcMon Apr 18 11:22:52 2005 +++ parrot-andy/classes/float.pmc W

[PATCH] dynclasses/matchrange.pmc void with return

2004-11-18 Thread Andy Dougherty
Sun's cc compiler complains about dynclasses/matchrange.pmc: "matchrange.pmc", line 305: void function cannot return value The following patch fixes it. --- parrot-current/dynclasses/matchrange.pmcFri Sep 17 00:55:02 2004 +++ parrot-andy/dynclasses/matchrange.pmc Mon

Re: [perl #30560] [PATCH] classes/complex.pmc: void function can't return a value

2004-07-02 Thread Ion Alexandru Morega
Andy Dougherty wrote: The Solaris compiler complained when classes/complex.c tried to return a value from a void function. This patch assumes the function indeed is intended to be void and no return value is needed. You're right, it slipped. We really need compiler flags to catch these. Stil

Re: [perl #30560] [PATCH] classes/complex.pmc: void function can't return a value

2004-07-02 Thread Leopold Toetsch
Andy Dougherty (via RT) wrote: The Solaris compiler complained when classes/complex.c tried to return a value from a void function. This patch assumes the function indeed is intended to be void and no return value is needed. Thanks, applied. leo

[perl #30560] [PATCH] classes/complex.pmc: void function can't return a value

2004-07-01 Thread via RT
lue from a void function. This patch assumes the function indeed is intended to be void and no return value is needed. --- parrot-current/classes/complex.pmc Thu Jul 1 04:47:13 2004 +++ parrot-andy/classes/complex.pmc Thu Jul 1 14:22:39 2004 @@ -433,7 +433,7 @@ void set_number_keyed (

Re: [perl #24341] [PATCH] classes/null.pl was trying to return 0 from a void function.

2003-10-29 Thread Melvin Smith
urn 0 from a void function. The problem is that the $retval was being matched against /void /, but the trailing space had already been stripped off. Applied this fix last night, thanks. -Melvin

[perl #24341] [PATCH] classes/null.pl was trying to return 0 from a void function.

2003-10-29 Thread via RT
# New Ticket Created by Andy Dougherty # Please include the string: [perl #24341] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=24341 > The new classes/null.pl was trying to return 0 from a void function. The problem

Re: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-24 Thread Dan Sugalski
At 04:57 PM 11/23/2001 +0100, Bart Lateur wrote: >On Wed, 21 Nov 2001 13:46:09 -0500, Dan Sugalski wrote: > > >Nah, using an I register as a host-machine-address for jumps doesn't argue > >for sizeof(INTVAL) >= sizeof(void *). Instead, it argues that the design > >

Re: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-23 Thread Bart Lateur
On Wed, 21 Nov 2001 13:46:09 -0500, Dan Sugalski wrote: >Nah, using an I register as a host-machine-address for jumps doesn't argue >for sizeof(INTVAL) >= sizeof(void *). Instead, it argues that the design >that uses an int as an absolute address is wrong. > >I'm g

RE: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-21 Thread Dan Sugalski
At 11:35 AM 11/21/2001 -0800, Brent Dax wrote: >Dan Sugalski: ># At 08:43 PM 11/19/2001 -0500, brian wheeler wrote: ># >On Mon, 2001-11-19 at 19:59, James Mastros wrote: ># > > I propose that we make INTVAL and opcode_t the same size, ># and gaurrenteed ># &g

Re: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-21 Thread Alex Gough
On Wed, 21 Nov 2001, Dan Sugalski wrote: > Nah, using an I register as a host-machine-address for jumps doesn't argue > for sizeof(INTVAL) >= sizeof(void *). Instead, it argues that the design > that uses an int as an absolute address is wrong. > > I'm going to rew

RE: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-21 Thread Brent Dax
Dan Sugalski: # At 08:43 PM 11/19/2001 -0500, brian wheeler wrote: # >On Mon, 2001-11-19 at 19:59, James Mastros wrote: # > > I propose that we make INTVAL and opcode_t the same size, # and gaurrenteed # > > to be able to hold a void*. # > > # > # >Seems reasonable to

Re: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-21 Thread Dan Sugalski
At 12:19 PM 11/20/2001 -0500, Ken Fox wrote: >James Mastros wrote: > > In byteswapping the bytecode ... > > > > I propose that we make INTVAL and opcode_t the same size, and gaurrenteed > > to be able to hold a void*. > >It sounds like you want portable byte co

Re: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-21 Thread Dan Sugalski
At 08:43 PM 11/19/2001 -0500, brian wheeler wrote: >On Mon, 2001-11-19 at 19:59, James Mastros wrote: > > I propose that we make INTVAL and opcode_t the same size, and gaurrenteed > > to be able to hold a void*. > > > >Seems reasonable to me, since jsr and jump are slat

RE: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-20 Thread Hong Zhang
> On Tue, 20 Nov 2001, Ken Fox wrote: > > It sounds like you want portable byte code. Is that a goal? > I do indeed want portable packfiles, and I thought that was more then a > "goal", I thought that was a "requirement". In an ideal world, I want a > PVM to be intergrated in a webbrowser the sam

Re: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-20 Thread James Mastros
On Tue, 20 Nov 2001, Ken Fox wrote: > It sounds like you want portable byte code. Is that a goal? I do indeed want portable packfiles, and I thought that was more then a "goal", I thought that was a "requirement". In an ideal world, I want a PVM to be intergrated in a webbrowser the same way a JV

Re: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-20 Thread Brian Wheeler
On Tue, 2001-11-20 at 12:19, Ken Fox wrote: > James Mastros wrote: > > In byteswapping the bytecode ... > > > > I propose that we make INTVAL and opcode_t the same size, and gaurrenteed > > to be able to hold a void*. > > It sounds like you want portable byte co

Re: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-20 Thread Ken Fox
James Mastros wrote: > In byteswapping the bytecode ... > > I propose that we make INTVAL and opcode_t the same size, and gaurrenteed > to be able to hold a void*. It sounds like you want portable byte code. Is that a goal? It seems like we can have either mmap'able byte code

Re: sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-19 Thread brian wheeler
feature-splitting, for example in file opening, some interfaces > (POSIX open(), for example) want to return an integer (the fd), and some > (win32 CreateFile(), for example) want to return a void* (the file > handle). (This is a pointer to a kernel-allocated structure that will > cause a s

sizeof(INTVAL), sizeof(void*), sizeof(opcode_t)

2001-11-19 Thread James Mastros
r (the fd), and some (win32 CreateFile(), for example) want to return a void* (the file handle). (This is a pointer to a kernel-allocated structure that will cause a segfault to directly access, BTW, so no GC problems here.) I propose that we make INTVAL and opcode_t the same size, and gaurrenteed to

Re: Size of integer register vs sizeof(void *)

2001-11-19 Thread Alan Burlison
Segher Boessenkool wrote: > > Are there any cases where a void * cannot be placed into an integer > > register? It seems like it shouldn't happen, especially since jump and > > jsr are supposed to take an integer register and they point to a > > host-machine-addres

RE: Size of integer register vs sizeof(void *)

2001-11-19 Thread Brian Wheeler
On Mon, 2001-11-19 at 12:43, Hong Zhang wrote: > > Are there any cases where a void * cannot be placed into an integer > > register? It seems like it shouldn't happen, especially since jump and > > jsr are supposed to take an integer register and they point to a &

RE: Size of integer register vs sizeof(void *)

2001-11-19 Thread Hong Zhang
> Are there any cases where a void * cannot be placed into an integer > register? It seems like it shouldn't happen, especially since jump and > jsr are supposed to take an integer register and they point to a > host-machine-address... What register are you talking about? The

Re: Size of integer register vs sizeof(void *)

2001-11-17 Thread Segher Boessenkool
brian wheeler wrote: > > Are there any cases where a void * cannot be placed into an integer > register? It seems like it shouldn't happen, especially since jump and > jsr are supposed to take an integer register and they point to a > host-machine-address... > >

Size of integer register vs sizeof(void *)

2001-11-17 Thread brian wheeler
Are there any cases where a void * cannot be placed into an integer register? It seems like it shouldn't happen, especially since jump and jsr are supposed to take an integer register and they point to a host-machine-address... Brian

Re: void*

2001-09-20 Thread Robert Spier
Quoting Dan Sugalski <[EMAIL PROTECTED]>: > > Could you explain again why you don't want char* anywhere, and > prefer > > void*? > > Because for character data we're not sure char * is right. (Might be > wchar_t, __int16, __int32, or something else) I

Re: void*

2001-09-20 Thread Damien Neil
On Thu, Sep 20, 2001 at 04:25:45PM -0400, Dan Sugalski wrote: > At 01:06 PM 9/20/2001 -0700, Robert Spier wrote: > > Could you explain again why you don't want char* anywhere, and prefer > > void*? > > Because for character data we're not sure char * is right

Re: void*

2001-09-20 Thread Dan Sugalski
At 01:06 PM 9/20/2001 -0700, Robert Spier wrote: >Dan, > > Could you explain again why you don't want char* anywhere, and prefer > void*? Because for character data we're not sure char * is right. (Might be wchar_t, __int16, __int32, or something else) It's also

void*

2001-09-20 Thread Robert Spier
Dan, Could you explain again why you don't want char* anywhere, and prefer void*? You answered this on language-dev, but went off on what seemed to be a tangent about encodings. Some ramblings of my own that may be confusing me, are: char* doesn't necessarily mean "a st

Re: Patch to fix arithmetic on void * pointers

2001-09-13 Thread Dan Sugalski
At 10:04 AM 9/13/2001 +0100, Tom Hughes wrote: >This patch fixes a couple of cases where arithmetic on void * pointers >is being done, which isn't valid although gcc seems to allow it. I need to get this building on Dec C again, I see. Damn. >Of course the memory.c code is broken

Patch to fix arithmetic on void * pointers

2001-09-13 Thread Tom Hughes
This patch fixes a couple of cases where arithmetic on void * pointers is being done, which isn't valid although gcc seems to allow it. Of course the memory.c code is broken anyway because it assumes a pointer will fit in an IV and I'm not sure that will always be true will it? Anyway