1. no value returned from function

Commit 504025824dd6 
 
g:/bitbucket/euphoria/include\std\machine.e:137 
<0120>:: no value returned from function 
    end function 
               ^ 
 
std/machine.e 137 
	public function poke_long(atom address, object x) 
		poke4( address, x ) 
	end function 
 

new topic     » topic index » view message » categorize

2. Re: no value returned from function

reading between the lines of the error message, a function needs a return value and statement.

edit: I don't think all of the low level routines have full coverage yet.

new topic     » goto parent     » topic index » view message » categorize

3. Re: no value returned from function

Hi

A function should have the structure

function name(params) 
 
return something 
end function 
 

you have to return something. You do not have to do anything with whatever is returned.

new topic     » goto parent     » topic index » view message » categorize

4. Re: no value returned from function

ChrisB said...

A function should ... have to return something.

While this is true, the bug being highlighted here is that this particular routine should have been a procedure and not a function.

new topic     » goto parent     » topic index » view message » categorize

5. Re: no value returned from function

Thomas said...

Commit 504025824dd6 
 
g:/bitbucket/euphoria/include\std\machine.e:137 
<0120>:: no value returned from function 
    end function 
               ^ 
 
std/machine.e 137 
	public function poke_long(atom address, object x) 
		poke4( address, x ) 
	end function 
 

Whoops! Thanks for catching that. This was a compatibility function for 4.0 (poke_long is now a built in for 4.1). Fixed now in changeset 39242f3eafca.

ne1uno said...

edit: I don't think all of the low level routines have full coverage yet.

Actually, poke_long is tested, but as a built-in. The 4.0 compatibility version isn't. Those are there to make it possible to build a 4.1 from source using a 4.0 translator.

Matt

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu