Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: operator

Why convert the right operator and Java in SWIFT to get the difference result

I am trying to convert my code from java to swift, but when using the Int type to execute the shift right operator, I get 2 diffrence results.

// java

int d = 25;
int x = d >> 1 + 1;
Sy

October 10, 2021By Simo Swift conversion, Difference, Get, Java, middle, operator, result, right, SWIFT, whyLeave a Comment

Delphi – How to use the overload operator to assign empty set to record

I am using records to encapsulate two exception sets.
I have put in operators to allow either group to be assigned to records. Doing so will clear the other. < br>But I cannot specify an empty set

October 5, 2021By Simo Delphi Delphi, Distribution, division, empty set, How, operator, overload, Record, useLeave a Comment

Can you overload the operator for a string?

Can I add my own operators and meta methods to strings in Lua?

I want to do something like this:

local str = “test”
print(str[2 ]) –> “e”
print(str()) –> “TEST”
print(-str) –> “tset”

October 5, 2021By Simo Lua operator, overload, string, thread, Whether it isLeave a Comment

Why is there any `fieldof` or` methodof` or `methodof` operator?

They can be used as follows:

FieldInfo field = fieldof(string.Empty);
MethodInfo method1 = methodof(int.ToString);
MethodInfo method2 = methodof(int.ToString(IFormatProvider)); fieldof can be compiled into IL, as follows:

ldtoken
call FieldInfo.GetFieldFromHandle methodof can be compiled into IL as:

October 4, 2021By Simo C# C #, Fieldof, Methodof, no, operator, whyLeave a Comment

The principle of new operators

About the principle of the new operator:

(1) Create a new object

(2) Set the function Assign the scope of the new object to the new object

(3) Execute the code in the constructor<

October 3, 2021By Simo Software Design New, operator, principleLeave a Comment

Why SCANF must use the address of the operator

As the title says, I always want to know why scanf must take the address of the operator (&). Because C has only “pass-by-value” parameters, to pass a’variable’ to put a value, you must pass its

September 29, 2021By Simo C & C++ Address, adopt, must, operator, scanf, whyLeave a Comment

In vs Any operator in PostgreSQL

What is the difference between the IN and ANY operators in PostgreSQL?
The working mechanism of the two seems to be the same. Can anyone explain this with an example? Logically, quoting the manu

September 21, 2021By Simo Postgresql Medium, operator, PostgreSQL, VSLeave a Comment
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress