Questions tagged as 'sintaxe'

1
answer

Go function with parameters

I came across the following function in a framework of Map Reduce, but I did not understand the syntax of it. func (fc *FlowContext) newNextDataset(shardSize int, dType reflect.Type) (ret *Dataset) {     ret = NewDataset(fc, dType)     if dT...
asked by 14.11.2018 / 13:56
2
answers

What is the unless in Ruby command?

Can anyone explain how this unless command works in Ruby? ruby_is_ugly = false puts "Ruby não é feio!" unless ruby_is_ugly It has output "Ruby não é feio!"     
asked by 05.07.2017 / 15:55
1
answer

Error syntax error, unexpected T_CONSTANT_ENCAPSED_STRING [closed]

add_filter('wp_nav_menu_items', 'add_search_form', 10, 2); function add_search_form($items, $args) { if( $args->theme_location == 'primary' ) $items .= '<li><div class="sp-search"><div class="top-search"><?php...
asked by 09.07.2016 / 02:09
1
answer

Syntax error in final key

In my code the following errors are appearing:    Error 1} expected **       Error 2 Type or namespace definition, or end-of-file expected ** using System; using System.Collections.Generic; using System.Linq; using System.Text; using Test...
asked by 07.11.2017 / 12:46
1
answer

Why some methods have '::'

Why some methods such as Perl or Ruby: Net::FTP , have these two points; how is the construction of the methods of this class and why it is created this way (with this syntax) and not of the form currently used by current libraries: HTT...
asked by 12.03.2017 / 04:12
1
answer

Doubt insert MySQL

Good morning,  I'm trying to make an insert, plus this giving error and seems to be in the field hour, could help me identify what's wrong:  Here is the insert and the error. INSERT INTO senhas...
asked by 01.03.2016 / 14:20
1
answer

Syntax understanding pl / sql Oracle 11g

I have an Oracle PROC 11g. Inside the proc is something like this: v_prazo_subs_ans ts_odo.odo_controle_sistema.val_parametro%type; Where: v_prazo_subs_ans is a variable ts_odo.odo_controle_sistema is the table...
asked by 19.11.2015 / 20:13
1
answer

Change according to page

Hello. I need the logo of the site to change according to the page that the user visits. I have a site made in PHP in which the top is include . So I thought about changing the logo via Javascript. I set ID="logo" to img a...
asked by 08.03.2015 / 19:46
1
answer

How to get the name of the parent object of the Javascript property

I have the following code: var teste = 'objeto': { version: '5.x.x', name:this[??] // 'objeto' }; What could be done so that the name property has the same name as the object to which it belongs (which...
asked by 09.03.2015 / 20:54
1
answer

How do I define a unit of measure in the value of the variable

I have a question asking me to calculate the volume value of an oil can, and thinking of that I will use float . How do I put a unit of measure, for example the variable altura = 50cm .     
asked by 05.08.2018 / 03:38