> 
> -----Original Message-----
> From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED] 
> Sent: woensdag 5 november 2003 13:55
> To: [EMAIL PROTECTED]
> 
> Le Mercredi, 5 nov 2003, � 13:11 Europe/Zurich, Reinhard 
> Poetz a �crit :
> > ...I'm +1 with the idea to send pages without payload but -0 with 
> > flowscripts which terminate without calling sendPage*. I 
> would prefer 
> > an explicit way....
> 
> Same here: flowscripts should not hide the fact that a 
> response is indeed sent.
> 

I suggested on the other thread that we could use "return null" as a signal for that.

function put() {
  doput();
  setStatus(201);
  return null;
}

Null would mean a pipeline is not required to be executed.

I've checked with Rhino. Null can indeed be used to discriminate between the situation 
where you return nothing at all as in that case an Undefined object is returned to the 
interpreter.


-- Unico

> -Bertrand
> 
> 
> 

Reply via email to