Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

request: bit-wise operator support

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
jonez734
Smarty n00b


Joined: 19 Oct 2005
Posts: 3

PostPosted: Wed Oct 19, 2005 7:12 pm    Post subject: request: bit-wise operator support Reply with quote

greetings,

I realize the docs do not claim that this sort of syntax is supported, but it would be nice if something like:

{if $flag & 0x0002}blah{/if]

would work. if that sort of thing is not supposed to work, could the compiler generate some kind of "not implemented" error or something?

for the record, it's possible to use the {php}/{/php} construct to make it work, but that is not very "clean" imho.
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Oct 19, 2005 8:54 pm    Post subject: Reply with quote

But have you tested it?

http://www.phpinsider.com/smarty-forum/viewtopic.php?t=6453
Back to top
View user's profile Send private message
jonez734
Smarty n00b


Joined: 19 Oct 2005
Posts: 3

PostPosted: Wed Oct 19, 2005 9:08 pm    Post subject: Reply with quote

sorry, didn't notice he'd already asked the question in another thread. I was trying to help skold out Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP